full disclosure I don't have a Playdate yet, this is a problem other people have seen when testing my game on a device.
Has anyone else seen an issue where a Playdate will randomly pause on them during gameplay for about 2 or 3 seconds? It sounds almost like garbage collection is kicking in with catastrophic results. I've been told it has a tendency to happen when the Pulp tune I'm playing loops back to the start, but beyond that I have no idea what triggers the delay.
I'm developing in Lua. I cache most resources before the start of gameplay (e.g. sounds, images, etc) but there are still some sprites I load and destroy during gameplay. I have given the Garbage Collector more time than usual to do it's thing per frame using
at the top of my main.lua file. As I'm just writing a puzzle game I'm not going to have a lot moving around at any given time so I think that's a good trade-off.
Anyone got any advice for anything else I could try? I'm in Group 3 so I've no idea when I'll get a device and am trying to decide whether or not to release the game before personally seeing it working on a Playdate.