Loads of performance fixes and changes to spider colours#42
Open
RohanDeBoss wants to merge 32 commits intocarykh:mainfrom
Open
Loads of performance fixes and changes to spider colours#42RohanDeBoss wants to merge 32 commits intocarykh:mainfrom
RohanDeBoss wants to merge 32 commits intocarykh:mainfrom
Conversation
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!
for performance
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.
60fps limit
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
+ Acceleration for player reduced slightly
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 :)