![Exordium](https://media.forgecdn.net/avatars/thumbnails/614/437/256/256/637998093760381250.png)
Text optimization
andreasdc opened this issue ยท 36 comments
What do you think about capping fps for text rendering too? For example you have 200 fps and you cap text for 100 fps, I think it will do a huge difference,
Got text working in a somewhat buggy state. Combined with Sodium basically only in the Hypixel Bedwars lobby it was able to do a meaningful difference (from 33-39fps to 55-62fps, but needs to be taken with a grain of salt since the content of the lobby is constantly changing). Still, a lot of loose ends to fix.
Got text working in a somewhat buggy state. Combined with Sodium basically only in the Hypixel Bedwars lobby it was able to do a meaningful difference (from 33-39fps to 55-62fps, but needs to be taken with a grain of salt since the content of the lobby is constantly changing). Still, a lot of loose ends to fix.
Yes I tested it a bit, it works pretty nice, sometimes big steve model appears or the text I think has slightly different shape, I think these are good results ๐ฅ
So got it working with signs now... 100 4 line glowing text sings in vanilla: 30fps, with the new setting 500+ fps. Also fixes the low render distance of the glowing text. Now looking into nametags.
So got it working with signs now... 100 4 line glowing text sings in vanilla: 30fps, with the new setting 500+ fps. Also fixes the low render distance of the glowing text. Now looking into nametags.
Wow, really a magician here :D Keep up the amazing work โค๏ธ
But text is always rendered as part of the GUI(other than nametags and signs), so it is already part of everything^^.
Yes I mean the nametags
But text is always rendered as part of the GUI(other than nametags and signs), so it is already part of everything^^.
There is more than just hypixel ๐. Hypixel is just the worst in the nametag direction, but it also gets really bad in the other direction(any server with a large storage/player shops etc). But yea, this needs a completely different logic than the rest of the mod, so currently need to get that part working first.
I can give it a try, but not 100% sure that it will work.
I hope it will work, good luck โค๏ธโ๐ฅ
No this is me trying to render some text to a texture that potentially could be on a sign at some point.
But mainly "trying".
No this is me trying to render some text to a texture that potentially could be on a sign at some point. But mainly "trying".
Yea but how often you look at signs? I was thinking of this implementation that it could be nametag with limited fps and tiny delay.
Both require the same logic, but doing signs first is a bit simpler since they are somewhat simpler to work with. Also, signs cause a lot more lag and are a bigger issue(think storage systems), especially with glowing text.
Both require the same logic, but doing signs first is a bit simpler since they are somewhat simpler to work with. Also, signs cause a lot more lag and are a bigger issue(think storage systems), especially with glowing text.
On Hypixel pit you don't have much signs, but a lot of players and nametags, which means lag :D
Feature didn't work out, it won't be added to any version(too many drawbacks for no real gain).
Feature didn't work out, it won't be added to any version(too many drawbacks for no real gain).
Really? You said there was some improvement
It was ~40% faster in the Hypixel lobby, but only with really rough benchmarking, and it didn't seem to translate to fps. Also breaks higher resolution glyphs, any high res resource pack font etc.
I will check that again sure, I found some sodium's commits maybe there could be something:
CaffeineMC/sodium@5a29aa6
CaffeineMC/sodium@624b9ee
https://github.com/CaffeineMC/sodium-fabric/commits/1.17.x/0.4-experiments?after=8395051b261b6fa30b67bce8a06fb2722080a115+34&branch=1.17.x%2F0.4-experiments&qualified_name=refs%2Fheads%2F1.17.x%2F0.4-experiments
You can give the build here on Github a try. I think it's probably not worth continuing?
That's text rendering optimizations. That was never the goal of this.
This feature gives me boost from 230-270 to 350-420 fps, hypixel leaderboards are nice test it. ๐
Hmm worst case I can leave it in for now, but disabled by default due to all of its issues.
Hmm worst case I can leave it in for now, but disabled by default due to all of its issues.
Yes sure thats great idea :) You think its possible to improve a bit special chars? I may be wrong but some are more bright or something.
Yea some appear to be brighter for whatever fucked up reason. I have literally 0 clues since this is all part of the vanilla logic.
Yea some appear to be brighter for whatever fucked up reason. I have literally 0 clues since this is all part of the vanilla logic.
Not a big problem, if you can build 1.18 I can test it in "production" while you take a break from this feature haha
Currently preparing for exams, so stuff will slow down anyway.
Good luck with exams my man โค๏ธ
About the brigtness, your text is darker than normally, special characters are as bright a normal ones, maybe that's the issue? I saw you merged with 1.19, can you merge it with 1.18 too?
Ah right need to backport it. And I wont be attempting to fix anything about it for now. I did merge it, but like I stated above, this is a broken feature and not a "normal part" of the mod that is maintained. With that, this issue is done.