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

Rebalancing Game Ticking Rate #18

Open
BenCheung0422 opened this issue Dec 21, 2024 · 0 comments
Open

Rebalancing Game Ticking Rate #18

BenCheung0422 opened this issue Dec 21, 2024 · 0 comments

Comments

@BenCheung0422
Copy link
Member

Original: MinicraftPlus/minicraft-plus-revived#693

Background

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.

Details

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 MinicraftPlus/minicraft-plus-revived#551). Of course the length of a day is also needed to be tweaked correspondingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment