Thanks to the advice I’ve received on here, I’ve almost eliminated stutters from my game. The last issue I have is when I test on mobile. The game runs at 60 fps on a low end Android; for the first minute or so, it drops a single frame or two every several seconds, causing a very noticeable, but brief, stutter in my bullet objects. After that first minute of playtime, however, it completely clears up.
I preload all of my objects. I don’t create or delete anything once the game starts in order to avoid garbage collection. And I make extensive use of groups to disable any bunches of non-relevant code. Does anyone know why the game might stutter occasionally at first, then completely smooth out? I’d love to be able to solve this if I could.
Thanks in advance.