-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vision_transparency_cache improvements #78104
vision_transparency_cache improvements #78104
Conversation
4f0704a
to
932c0e9
Compare
2024-11-24.03-19-33.mp42024-11-22.23-16-24.mp4Been trying to figure out why my game has been running abysmally slow is this related? as it comes and goes when my game suddenly goes slow, for a while idk a few days, then suddenly fast again.
|
It could be but I can't really magically tell that without a save where it can be reproduced |
I have updated today, to see if any recent changes have helped, but it has not.
https://github.com/user-attachments/assets/4f33c550-1bd5-4eaa-97da-5c348fb24c84 2024-11-24.20-47-31.mp4My issue is that the game goes slow for a while but then after a while uncertain honestly a few days, it resumes playing at "normal" speed i can't for the life of my figure out why this is happening so i presume it's some sort of cache issue which made me wondered if this pr would fix it, Thank you for your time. |
Zakhadia_BigCity-trimmed.tar.gz This is another save where now my game is running fast again, all i've been doing is tailoring repair jobs for the most part in the same location, i have been disassembling clothing after repairing them, one to improve my skill and 2 to get more resources from some of the items. What i did notice was when i was forced to restart just after making this save i was going to make a recording on OBS to prove it was faster, (I couldn't get the screen to capture for some reason, unrelated) as soon as the game loaded up again it went really slow again. |
Your slowdown is something EOC related so I'd open up an issue for it (Here's the eocs.output renamed so I can upload it if anyone wants to take a gander now) Edit: Renech and Guardian figured it out, see linked PR below |
lol, it was closed because of #78136? |
That's weird. I didn't know that a PR could close another PR. |
Summary
Performance "vision_transparency_cache isn't rebuilt if transparency_cache_dirty isn't set"
Purpose of change
Fixes #78092
Describe the solution
vision_transparency_cache rebuilds regardless of player z level
vision_transparency_cache only rebuilds if transparency_cache_dirty is set (which as far as I can tell it should be everywhere relevent)
Will probably add a vision_transparency_cache_dirty
Describe alternatives you've considered
Planning on attempting a followup PR making translucency non binary
Testing
Load save from linked issue, wait in place until daylight (20hr). Before it took 59s now it takes 34s.
Before hotpath for building the vision_transparency_cache was ~50% now it's ~0.02%
Tested that running past a window with Digitigrade Legs, Paws and Beast "correctly" obscured vision
Additional context