I tried to optimize my code but it did not help.
When I print the FPS it starts with 30 and slowly drops down to below 10. Proberly lower but I stopped it.
The game I'm working on is a memory game.
What I do is show a grid with 10x10 sprites.
Each loop I check for keypress and if keypressed then I change the pressed sprite with SetSpriteImage.
But for each keypressed it gets slower and slower.
Any idea why?
[Edit]
I think I'm onto something.
I print the GetManagedSpriteCount every loop and it is increasing for each loop. So proberly something wrong with my code somewhere.
[/Edit]
[Solved]
I found out that every time I did redraw my 10x10 grid I did a CreateSprite instead of SetSpriteImage and it added a 100 new sprits every time I called my keypressed routine.
But now it sloved and my game is fast again.
[/Solved]