VulkanMod
VulkanMod copied to clipboard
Basic frustum changes
- Use a parallelStream to recalculate the frustum, so the cpu is better utilized
- Add a bit? of overdraw, but heavily reduce how often the frustum is recalculated
This slightly reduces the fps while standing still, but can up to double the fps while moving the camera/player. In the future this should probably work more like Sodium does: with a flood fill and better optimized Frustums.
- Use a parallelStream to recalculate the frustum, so the cpu is better utilized
- Add a bit? of overdraw, but heavily reduce how often the frustum is recalculated
This slightly reduces the fps while standing still, but can up to double the fps while moving the camera/player. In the future this should probably work more like Sodium does: with a flood fill and better optimized Frustums.
Nice to see such movement on this mod. :) I was testing it for couple minutes, but I don't know how to check if it helped. I didn't see much difference on fps.
To test the difference: Stand still and circle the mouse. The fps will drop by a lot, with this change a bit less(but still drop). Edit: the drop depends on the render distance. At <= 16 it's probably not too noticeable, at 32 it will /3 the fps easily. Edit2: locally did some more tweaking and got some more performance out of it. Gonna update the pr later.
@tr7zw i tested your build, indeed, we loose less FPS with your change (i noticed a maximum loss of 20 fps: from 100 to 80fps). Good job, mate ! 👌
Will it help for this? Maybe it can be implemented?

Yea it's exactly what this pr aimed to improve, but it's janky(and outdated). Probably better to fix it correctly like Sodium/Optifine do.
Would be nice to see the fix 🚀
Latest update addresses this aspect in a better way, from how chunks are updated to optimized frustum culling. Frustum computations could still be made multi threaded but the benefits would be minimal. I'll close this PR for now, if you still want to try or come up with something better open a new one. Thank you for your efforts.
Yea I've seen the dev builds and new releases, don't think I will be able to get around to try to make anything that can compete, since I'm tried up with other projects.