cxong / cdogs-sdl

Classic overhead run-and-gun game
https://cxong.github.io/cdogs-sdl/
GNU General Public License v2.0
895 stars 115 forks source link

Wall blocks loading #772

Open PavanLuca opened 1 year ago

PavanLuca commented 1 year ago

While running downward or upward I can see clearly that wall blocks on low screen border are loaded in delay instead of being preloaded. It's more noticeable with vertical walls lines rather than horizontal ones but doing small steps it's visible even with horizontal wall lines. Schermata da 2023-06-03 15-45-26

cxong commented 1 year ago

wdym "loaded in delay"?

PavanLuca commented 1 year ago

I mean that they aren't loaded before they come in sight. If you walk downward on any map (preferably close to long vertical walls) you can see that wall blocks are loaded one after the other. If you walk upward instead you can see them disappear. On the screenshot 👆 I show 2 wall blocks not being loaded due to this, despite it's obvious that they must be there as the map is still 2 rooms long downward. Meanwhile, floor is correctly loaded.