r/fabricmc • • 4d ago

Need Help sodium gives less fps than java

sodium on java 1.21.11 gives 350-450 fps,but when i use vanila i get 450-600 fps ... Both have mostly the same settings,and sodium is even configured for more performance . My specs are rtx 4050 mobile, amd ryzen 7 7445 hs

1 Upvotes

5 comments sorted by

5

u/Available-Squash1021 4d ago

That laptop has two GPUs: the RTX 4050 and the Ryzen 7445HS iGPU. Open the F3 debug screen in both the vanilla instance and the Sodium instance and check the GPU / renderer line. If Sodium is running on the Radeon iGPU and vanilla is on the 4050, that alone can explain the FPS gap.

The official Sodium compatibility page also says a lot of Sodium issues come from graphics drivers, and that you should download the NVIDIA driver from NVIDIA's own site, not through Windows Update or Device Manager. For NVIDIA, they want driver 536.23 or newer: https://github.com/CaffeineMC/sodium/wiki/Driver-Compatibility#nvidia-gpus

Also double-check both instances are actually using the same video settings, especially VSync, Max Frame Rate, fullscreen vs windowed, render distance, and Graphics (Fast/Fancy/Fabulous). Official Sodium for 1.21.x is on https://modrinth.com/mod/sodium

1

u/R3xsd 3d ago

the gpu used is rtx 4050,but isnt minecraft cpu intensive anyway?

1

u/Available-Squash1021 3d ago

Yeah, a lot of the game itself is CPU work — world ticking, entities, chunk updates and so on. The FPS number is just how fast the client can draw frames, which is the GPU plus the CPU cost of building the meshes that get drawn.

Sodium is a rendering-engine replacement, and the official page is pretty explicit that it only optimizes Minecraft's rendering code. It still uses the CPU to prepare frames, then the GPU draws them. If F3 already shows the RTX 4050 on the graphics card / renderer lines in both instances, the 'wrong GPU' idea is less likely, and it can still be CPU-limited. (Lithium is the CaffeineMC mod that targets the game's internal server, which is the other half of that.)

If you haven't already, it's worth matching VSync, Max Frame Rate, fullscreen vs windowed, and render distance between the two tests, since those all change the FPS number. Both of those ranges are already well above what a typical laptop panel can show, so the gameplay difference may be small, but it's still fair to want Sodium not to be slower.

If you can share an F3 screenshot from vanilla and one from Sodium, the useful bits are the FPS line and the graphics card / renderer lines.

0

u/CrossScarMC 4d ago

Better question, why do you even need more FPS? If you're using a laptop your screen is likely 60FPS, 120 at most. So there's no reason to need more than like 240FPS.