r/cataclysmdda • u/marsbhuntamata • 12d ago
[Discussion] Lighthouse map lag
Hello New player here. I'm maintaining a fork of DDA on windows optimized for screenreader accessibility. I'm running into one problem I have no idea and would like to know if it's universal or it's my version that does something. There's noticeable lag and ram usage skyrocketing on lighthouse maps, the ones you start with in safe place. Lighthouse mseems to be the only map type that does this. Anyone else experiencing the same lag? Would like clarification please.
2
u/marsbhuntamata 11d ago
Is...this even necessary?
So I did run my test to see if I could figure out why the game lagged and ate my ram like crazy and then found out it had something to do with how the map was set to redraw in the mainline code. I submitted a git issue informing them of that, and of course I couldn't use mainline git release to do it because it wasn't accessible with my screenreader. This is what I got.
RenechCDDA
left a comment
(CleverRaven/Cataclysm-DDA#89555)
No save, not our release, not our problem.
If you have a save, and it reproduces on an actual release we've made, then we can begin to talk about it. Anything else is not supported.
—
Apparently, courtesy is hard earned or something. Are they usually this rude?
2
u/feral_lawyer 11d ago
Most of the people on the project are real nice people but yeah one of them displays this incredible behavior on a regular basis.
2
u/marsbhuntamata 11d ago
There's no way for me to send this particular issue on git on their official build when the official build doesn't support NVDA screenreader or any kind of screenreader in general. I'd love it if anyone could reproduce the problem and physical memory monitor on their official bloody build and see if it does the same. I have steps to reproduce right here. This deeply discourages me to pass any issue to their main fork. I figure it may be the upstream code and not my fork code that causes the lag and there's a way to fix it because I did fix mine. But when sending it is met with this kind of response then...
The short version is:
Test: Existing lighthouse save, then fresh lighthouse save
Load an existing save near a lakeside lighthouse that has already been explored.
Monitor the physical memory usage of `cataclysm-tiles.exe` in Task Manager.
Enter look mode and move the cursor around the surrounding terrain.
Examine the water at different Z-levels, particularly Z-1 and Z-2.
Switch repeatedly between looking around and normal character movement.
Return to Z0 and continue alternating between `x` look mode and movement.
Watch the process memory usage and responsiveness of the game menus.
3
u/Right-Cow4166 12d ago
I'd say it's probably most likely that it's just because lighthouses spawn on large bodies of water, and there's a lot of creatures in the water the game is simulating (lighthouse or no). To be thorough, if you haven't, debug map vision to make sure there isn't, say a lab on a z-level under you, as monsters in those are a pretty common culprit for performance drops basically anywhere. I suspect it's just being on a lake though, since even driving near one tends to cause noticable lag.