In-game FPS indicator still high when switched to background
blufish1234 opened this issue ยท 9 comments
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.
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?
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
Just to be sure, could you try it in a fresh instance? I don't recall seeing this issue on Windows.
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.
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.