Skip to content

Loads of performance fixes and changes to spider colours#42

Open
RohanDeBoss wants to merge 32 commits intocarykh:mainfrom
RohanDeBoss:main
Open

Loads of performance fixes and changes to spider colours#42
RohanDeBoss wants to merge 32 commits intocarykh:mainfrom
RohanDeBoss:main

Conversation

@RohanDeBoss
Copy link
Copy Markdown

This is a lot of performance improvements and bugfixes, like the sim lagging at 6 years in. (Now it takes about 60 years). The spider colours are more gradual and the game is unified at 60 fps so that physics are no longer different for different refresh rates, this also includes the features from the other 2 pull requests :)

Rohan added 30 commits November 19, 2024 00:31
I have added new colours and tweaked them to be better so that none overlap!
Only activates the selecting of spider when you click, massively improving performance!
Floating point overflow added up as ticks went on, I fixed that so now there is a small stutter but it doesnt get worse with time! (And graphs have no bugs now!)
Multhreading, cashing and so much more!
optimisations to the collectdata class improve performance and reduce hitching
lots of small improvements
Plus some more changes like threads used
This was the equal best version... the original
Shorter loading times because of multiple threads + cool loading screen!!!
When the day ticks over, there is less of a stutter now due to improvements to collect data.
All in the name of less jitters!
Draw visuals. And in that, the draw spiders and popMatrix/endDraw are the only things worth optimising from there!
gains about 8% fps!!!
But with fps counter included. This is because of speed bugs caused by a commit at some point and fps on more powerful hardware actually decreased!
Unused variable removed + 582 lines now
fps improved from max 52 to max 56! (standing still) we can optimize the color calculations by caching them since they only need to be recalculated when the number of swatters seen changes.
6ms for ui, everything else is 0 until speed up sim, where physics at 256x speed is 60ms
fps 55 tick. 1024x speed 16fps +1
It seems to slightly improve fps 55->56 and 16->17
as well as floating point safety. Fps increase +1 58-59 max fps
Rohan and others added 2 commits January 20, 2025 01:11
+ Acceleration for player reduced slightly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant