The curious thing about this is that it happens for all screens, even if they’re virtually empty (one text node and one box node) and minimal code in the .gui_script.
Aside from the above, is there anything else I could do to avoid this stutter?
Edit: Removing things in sequence until there was no stutter revealed the culprit: Shadow Alpha and Shadow Blur. When both set to 0, the stutter disappears. Is it possible to pre-cache the fonts?!
First the phone freezes for 2 frames, then the FPS gets shaky for a few seconds, then comes back to normal. If no shadows are used, there is no freezing or FPS drop at all.
That’s great. Then my plan to cache all glyphs during loading might work. Will try it out tomorrow.
Edit: Ok, I’ve managed to get it to work! There is a caveat, though: The collection with the cached fonts needs to always be visible/in memory. If it’s unloaded, the stutter starts happening again.