CaffeineMC / sodium

A Minecraft mod designed to improve frame rates and reduce micro-stutter
Other
4.77k stars 810 forks source link

Make obfuscated text rendering less memory-intensive #2834

Open muzikbike opened 1 day ago

muzikbike commented 1 day ago

Request Description

Minecraft's implementation of this is terrible, and causes the game to cache thousands of characters in hundreds of files in RAM after not too long looking at it. https://bugs.mojang.com/browse/MC-277733

Perhaps for each character width, we could only keep around fifty glyphs in memory, and loop through them randomly, instead of selecting matches from the entirety of whatever Unifont has to offer?