Skip to content
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

Editor framerate improvement(s) #78

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Conversation

t0stiman
Copy link
Collaborator

@t0stiman t0stiman commented Oct 22, 2024

fixes #40

I changed the track snap code to only execute when necessary instead of every frame. I managed to increase the framerate in the editor from 3 to 7 FPS with these changes, in a test map with a big yard.

Before (note the yellow FPS counter):

before.mp4

After:

after.mp4

7 FPS is still really low so I'm going to look for more code to optimize. Opening this PR as a draft for feedback

@t0stiman
Copy link
Collaborator Author

22 FPS! :)

@t0stiman t0stiman marked this pull request as ready for review October 23, 2024 13:22
@t0stiman t0stiman requested a review from Insprill October 23, 2024 13:22
@t0stiman
Copy link
Collaborator Author

Improving the framerate further requires editing the BezierCurves library, which I will leave for another time/PR.

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.

Low framerate in editor with many tracks
1 participant