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

Reducing update ticking frequency #693

Open
BenCheung0422 opened this issue Aug 26, 2024 · 0 comments
Open

Reducing update ticking frequency #693

BenCheung0422 opened this issue Aug 26, 2024 · 0 comments
Labels
Debugging Issue related to debugging in game, by players and/or developers. Improvement Something that we can improve. Performance Issue related to performance. World system Issue related to game world system/mechanics.

Comments

@BenCheung0422
Copy link
Member

BenCheung0422 commented Aug 26, 2024

Is your feature request related to a problem? Please describe.
At the moment, update ticking frequency is 60Hz, in other words, 60 ticks per second (TPS). However, there could be potential issues if there is computations per tick, so I suggest reducing the frequency or TPS a little bit.

Describe the solution you'd like
In some words to also avoid potential mechanism balancing calculation difficulties, a multiple of 3 (which is not a factor of 10) should be avoided. So, TPS could be 20 or 40. 10 TPS could be too low for some updates, like the situation of using a 30Hz monitor instead of a 60Hz monitor nowadays. If computation is too frequent, heavy lagging can be caused, this also includes the debugging function to tweak FPS, which may be issues to get intended results potentially in some circumferences. (Many mechanisms depend on update ticking, like texture animations and mob spawning.) Here, there are 2 considerations, reducing TPS and removing TPS altering ability. This would also affect bed sleeping mechanism (where there is already an example of #551). Of course the length of a day is also needed to be tweaked correspondingly.

@BenCheung0422 BenCheung0422 added Improvement Something that we can improve. Performance Issue related to performance. Debugging Issue related to debugging in game, by players and/or developers. World system Issue related to game world system/mechanics. labels Aug 26, 2024
@BenCheung0422 BenCheung0422 moved this to Todo in 2.3: Rewrite 1 Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Debugging Issue related to debugging in game, by players and/or developers. Improvement Something that we can improve. Performance Issue related to performance. World system Issue related to game world system/mechanics.
Projects
Status: Todo
Development

No branches or pull requests

1 participant