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

Tweak the plot update loop #134

Merged
merged 2 commits into from
Jan 3, 2024

Conversation

Paul1365972
Copy link
Contributor

I wrote this PR mostly to improve the interaction between the update loop and future new backends.
Some nice side effects are that when the redpiler is reset it will no longer hang or even timeout the player in extreme cases.
This also nearly solves the issue where changes would not flush at a consistent rate at very high tick rates.
The auto redpiler feature should also work more consistently now.
I additionally changed some of the magic constants, the new values worked better for my use cases, but I would still like a second opinion on them (Especially the reduction of the max batch size to 15_000 per update, does that create any issues?).

@Paul1365972 Paul1365972 marked this pull request as ready for review December 3, 2023 23:00
@Paul1365972
Copy link
Contributor Author

I have since reverted the maximum tick batch size back to 50_000 after realizing that we actually send world updates 60, not 20, times per second.

@StackDoubleFlow StackDoubleFlow merged commit ac1e4d6 into MCHPR:master Jan 3, 2024
1 check passed
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