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

Use perfect fixed interval ticks/physics frames or, by default, integer multiples #149

Closed
wants to merge 6 commits into from

Conversation

AltimorTASDK
Copy link

This adds support for fixed tick deltatime and multiple ticks per render frame. cl_mergeticks (default 1) disables simulating multiple ticks per frame and instead ticks only once, consuming the highest possible integer multiple of the tick interval from the accumulated time, avoiding slowdown on PCs that can't handle 72 tick at the expense of determinism by default.

Input is sampled once per frame, but mwheel inputs, wait, mouse strafe, m_filter, and CL_KeyState should all be properly accounted for when running multiple ticks/usercmds per frame.

@j0zzz j0zzz closed this Jan 17, 2025
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.

2 participants