Sodium

Sodium

44M Downloads

Try to fix the fps drop from mouse movements

Pan4ur opened this issue · 6 comments

commented

Request Description

I noticed that in vanilla Minecraft when you move the mouse the fps drops a lot. Here is a video:

fps.mp4
commented

This is expected, when you're standing still the renderer has much less work to do to update culling and you become CPU-limited. Your video is of vanilla minecraft; Sodium already improves upon this, and there is ongoing work to improve it further.

commented

the fps changes just from mouse movements, not from camera rotation

Are you able to reproduce this in fullscreen with only Sodium installed? You can use F3+Esc to make the mouse cursor visible

UPD: can reproduce

commented

Please look at the second half of the video, the fps changes just from mouse movements, not from camera rotation. This also happens with Sodium for Fabric

commented

The second frame drop is normal windows actives because your switching from rendering single a single application to multiple in boardless window mode.

Please look at the second half of the video, the fps changes just from mouse movements, not from camera rotation. This also happens with Sodium for Fabric

commented

If sodium eventually implemented the DXGI swapchain, this problem could be mitigated by MPO windowed independent flip.

commented

We already have an issue open about using DXGI Presentation (#2361), which probably would resolve this problem.