Changing fontsize in jsui sketch Slow?
Has anyone else noticed this or have any information?
I was trying to make a jsui component that displayed some text. Everything worked well at first when I was just displaying a single number, but I noticed that it became really slow/laggy when I tried to add a second number with a different fontsize. It was actually fine if fontsize was left unchanged, but changing fontsize caused noticeable lag.
I'm thinking that maybe changing fontsize takes more time than other operations like drawing, moveto, shapes, etc, but damn. Wouldn't expect it to be such a significant impact.
I ended up just pursuing something else, but if I needed text at multiple fontsizes, I imagine I'd have to get creative. Possibly making it so the ondrag() function doesn't call msgfloat() unless the value has changed enough to cause a change in the number ( avoiding unnecessary calls to draw() ).
Curious if anyone has seen this or has any interesting perspective to share!