CaffeineMC / sodium-fabric

A Fabric mod designed to improve frame rates and reduce micro-stutter
Other
4.62k stars 785 forks source link

Enhanctment Glint should be rendered using a custom shader rather than with additional geometry #2497

Open jellysquid3 opened 2 months ago

jellysquid3 commented 2 months ago

This would solve a lot of problems with code paths getting de-optimized when it encounters the VertexConsumer that is used for enchantment glints. Additionally, not generating additional geometry on the CPU saves significant time and video memory bandwidth, while fixing issues like #2487 and #2486.

muzikbike commented 2 months ago

Could a similar method be used for the block cracking animation if not already?