MalisisCore

48M Downloads

UITextField has very bad performance when rendering long strings

Barteks2x opened this issue ยท 3 comments

commented

I identified the performance issue to be in MalisisFont.getStringWidth. For 3000 characters string I'm getting maybe a few FPS in world customization settings, but only when the beginning of the text is shown. When the end of the text it shown, it works fine.

In vanilla it works fine.

Note: this is after disabling translation in my font by making processString return the input without any changes.

commented

Fixed.

commented

Any chance it could be also back ported to 1.11.2? I want to support both 1.11 and 1.12 for some time and the performance issue will only get worse as I add more convenient fig options

commented

Once I figure out how to do it... Egit doesn't seem to allow range cherry picking :/
I guess I'll have to pick them 1 by 1 :x