Exordium

Exordium

984k Downloads

Text optimization

andreasdc opened this issue ยท 36 comments

commented

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,

commented

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.

commented

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 ๐Ÿฅ‡

commented

sometimes big steve model appears

grafik

It's not a bug it's a feature... A feature I didn't code(on purpose).

commented

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.

commented

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 โค๏ธ

commented

doing signs first is a bit simpler

Also famous last words. Took 4 days of pain.

commented

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

commented

But text is always rendered as part of the GUI(other than nametags and signs), so it is already part of everything^^.

commented

I can give it a try, but not 100% sure that it will work.

commented

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.

commented

I can give it a try, but not 100% sure that it will work.

I hope it will work, good luck โค๏ธโ€๐Ÿ”ฅ

commented

grafik
Well, 2-3 hours in one pic...

commented

grafik Well, 2-3 hours in one pic...

These are nametags?

commented

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".

commented

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.

commented

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.

commented

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

commented

sometimes big steve model appears

grafik

It's not a bug it's a feature... A feature I didn't code(on purpose).

I think you liked this idea :D will you add 1.18 version too? ๐Ÿ˜Š

commented

Feature didn't work out, it won't be added to any version(too many drawbacks for no real gain).

commented

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

commented

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.

commented

You can give the build here on Github a try. I think it's probably not worth continuing?

commented

That's text rendering optimizations. That was never the goal of this.

commented

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. ๐Ÿš€

commented

Hmm worst case I can leave it in for now, but disabled by default due to all of its issues.

commented

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.

commented

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.

commented

Currently preparing for exams, so stuff will slow down anyway.

commented

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

commented

Currently preparing for exams, so stuff will slow down anyway.

Good luck with exams my man โค๏ธ

commented

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?

commented

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.

commented

When can you release it for 1.18?

commented

Testing this feature in production, works great, nice performance improvement, thank you for your mods. โค๏ธ