shapez.io icon indicating copy to clipboard operation
shapez.io copied to clipboard

Fix slight error in FPS calculation

Open EmeraldBlock opened this issue 3 years ago • 1 comments

Currently, FPS is calculated as the number of frames (this.accumulatedFps) divided by the constant fpsAccumulationTime. However, fpsAccumulationTime is only the minimum time needed to pass, and timeDuration represents the actual amount of time that passed.

This PR changes the FPS division to use timeDuration instead of fpsAccumulationTime.

EmeraldBlock avatar Mar 03 '22 04:03 EmeraldBlock

[email protected] made a mod for it

WaffleDevs avatar Jun 09 '22 17:06 WaffleDevs