Dynamic FPS

Dynamic FPS

16M Downloads

In-game FPS indicator still high when switched to background

blufish1234 opened this issue ยท 9 comments

commented

Although the FPS on the monitor is refreshing at 1 fps when set, the In-game FPS indicater still shows that the game renders at about 80 fps and the GPU Usage is still kind of high. 160fps when focused on window.

commented

image

commented

Yeah, Dynamic FPS essentially just replaces the render call with a sleep for 30ms, so it unfortunately makes the FPS counter inaccurate. However, 80 FPS should be impossible, since the method blocks for those 30ms, so the max should be around 33 FPS. Does this still happen in an instance with just Dynamic FPS?

commented

I have disabled all of my optimising mods, but It's still 80 fps

commented

I removed all of the mods, and found out that it is for sure 30fps in singleplayer mode. On servers, however, fps is still high

commented

Just to be sure, could you try it in a fresh instance? I don't recall seeing this issue on Windows.

commented

same as above when other mods are enabled again

commented

Yeah, we'd have to mix into other places to manipulate the frame time statistics to match whatever it's actually rendering. It might be worth it just to reduce confusion, but I'm not sure how hard it would be.

commented

As said above, this is a side-effect of checking whether the game has been re-focused again more than once a second, and cancelling the rendering of all but one frame per second if it is still not focused. I've tested only checking this once a second but then tabbing back to Minecraft feels awfully slow, whereas the current method allows resuming gameplay almost instantaneously.

The most we could do without worsening the user experience is override the frame rate in the top left of the debug screen, however I don't really see a point in this right now.

commented

Having the same issue here, both singleplayer and multiplayer show a much higher fps than what Dynamic-FPS is set to.
The frame time graph below indicate that the mod doesn't sleep for long enough and still runs some frames at full speed.

image