Skip to content

Set Game Fixed Update Frames to 60 FPS #544

@zicklag

Description

@zicklag

Currently the game runs at a 45 fixed updates-per-second. We want to change this to 60 FPS.

The original reason for turning it down to 45 was for performance in the networking rollback mode, but since networking isn't working without desync bugs right now anyway, we may as well let the local play experience be as good as it can be, and fix the networking later, once we have the new ECS model in place that should fix the desync bugs.


This should be a simple change. The first step is to change this constant to 60:

pub const FPS: usize = 45;

At that point, most of the physics will seem to run in fast-forward, because all the other game constants are tuned for running at 45 FPS right now.

That means the last step is to go and update all the constants regarding player movement/fall speed, etc.

The item constants, such as fuse times, etc will be found in this asset folder: assets/map/elements/item.

There may also be some constants in the player states and the item Rust implementations.

Pretty much you just have to tweak those numbers until it plays normal again at 60 FPS.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions