-
Notifications
You must be signed in to change notification settings - Fork 17
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
Change framerate to 60fps #100
base: master
Are you sure you want to change the base?
Conversation
With a8ac2e4 I've updated the PR to split CSystem::Update into UpdateBehaviors and UpdatePhysics.
The slow motion effect used when docked or with menus is now much smoother as the physics update occurs at the full frame rate (for both 30 and 60 fps modes) addressing [Feature] Smoother time - slow
|
Particle effects should be mostly working now and pickup the correct time step for movement updates. Remaining issues:
|
Refactors the core animation loop as proposed in Improved Physics Engine to:
Where UpdatePhysics includes movement, collision detection, collision resolution etc. and can be called with an arbitrary timestep. As a result the physics update is no longer tied to the behavior update and will run at the full framerate, which addresses [Feature] Smoother time - slow.
Adds a new game setting
use60fps
(default True) which will run the display and physics at 60 fps, while behavior remains at 30 ticks per second.