Skip to content

Non-blocking FPS limiter#4994

Open
jwt27 wants to merge 8 commits into
dkfans:masterfrom
jwt27:fix-fps-limit
Open

Non-blocking FPS limiter#4994
jwt27 wants to merge 8 commits into
dkfans:masterfrom
jwt27:fix-fps-limit

Conversation

@jwt27

@jwt27 jwt27 commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #4919. This patch rewrites the frame rate limiter and makes it non-blocking, so that it doesn't interfere with networking. It also now works with fast-forward.

@jwt27 jwt27 marked this pull request as ready for review July 7, 2026 23:52
@jwt27 jwt27 marked this pull request as draft July 8, 2026 06:59
@jwt27 jwt27 marked this pull request as ready for review July 8, 2026 17:11
This allows higher frameskip values.
@Loobinex Loobinex requested a review from rainlizard July 8, 2026 17:48
@jwt27 jwt27 marked this pull request as draft July 8, 2026 18:06
@jwt27 jwt27 marked this pull request as ready for review July 8, 2026 18:06
@Loobinex

Loobinex commented Jul 8, 2026

Copy link
Copy Markdown
Member

@jwt27 I tested it, and joined a LAN game with myself twice. I increased frameskip as red, and did not do anything yet with blue. Then playing as red became impossible, very laggy controls.

@jwt27

jwt27 commented Jul 8, 2026

Copy link
Copy Markdown
Contributor Author

@jwt27 I tested it, and joined a LAN game with myself twice. I increased frameskip as red, and did not do anything yet with blue. Then playing as red became impossible, very laggy controls.

Because the frameskip value is not communicated over the network. One side can enable it (and slow down viewport controls) but doesn't know that the other hasn't. This behavior is the same in alpha 5192, not a regression.

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.

3 participants