Ok so my project is growing at quite a rate, and at some point I seem to have inserted a new problem, but I'm buggered if I can find out where it is.
When the main game loop starts (after the menu), it slows down to 30-40 fps for 3-4 seconds, before hitting 60 FPS and staying there. This is reproducible both on my windows laptop & on my phone (android)
Now, there's no reason at all that I can think of that anything 'more' is happening in the first few hundred frames of the game. I've tried taking out all the 'heavy lifting' stuff from the main program loop & most of the drawing to leave it bare bones, but it doesn't have an effect. All the images are loaded & sprite setup etc before entering the main loop. It could be a red herring, but it does seem to have got worse as I've progressively loaded a lot of images ( even tho these are done prior to the main loop)
It 'feels' as if AppGameKit is caching something or other.. as after that 3-4 seconds it's fine.
I can probably work round it creatively by using a starting flag with a four second countdown (it's a race game).. but I'd love to know why it's happening.
has anyone come across anything similar?