PDA

View Full Version : LOS - Question regarding wall-occulder around map



tantauralus
March 24th, 2020, 16:01
Maybe one of the devs could anwser this question:

what would be a better performance option regarding the amount of needed calculations for the LOS-Code to do?

Having a wall-occluder surounding your map(tiles) or not having one ?

My train of thought was that it might be better performance wise to have one such occulder as the code calculating LOS would hit a barrier before reaching an (pressumed) maximum distance without hitting an occulder.
Or is such occulder not needed as the code for LOS automatically stops when its reaches an position outside an image(tile)?
Maybe it is even counterproductiv.

Regards,
Tantauralus

pindercarl
March 24th, 2020, 16:22
Maybe one of the devs could anwser this question:

what would be a better performance option regarding the amount of needed calculations for the LOS-Code to do?

Having a wall-occluder surounding your map(tiles) or not having one ?

My train of thought was that it might be better performance wise to have one such occulder as the code calculating LOS would hit a barrier before reaching an (pressumed) maximum distance without hitting an occulder.
Or is such occulder not needed as the code for LOS automatically stops when its reaches an position outside an image(tile)?
Maybe it is even counterproductiv.

Regards,
Tantauralus

Your reasoning is sound. The LOS calculation automatically adds occluders around the extents of the image for just this reason.

tantauralus
March 24th, 2020, 16:31
Ok, so there's no need to add such an occulder one self.

Thanks for answering!

Regards,
Tantauralus