Reputation: 7937
I am developing a game in which creatures are crossing a road and may occasionally get "splatted" by a passing car. I am continuously displaying the frame rate on screen. When the game starts the frame rate is typically 20-25fps, but when my creatures get splatted and their bitmaps swap to their splatted state, the frame rate plummets down to around 4 per second. This is strange as the "splatted" bitmaps I'm drawing are smaller than the bitmaps for my creatures in their alive state.
The problem could, I guess, be all sorts of things - for example there are assorted routines in the update_game_physics() code that behave differently. But my question is - how could I diagnose the cause? Are their tools or techniques that could help?
Upvotes: 0
Views: 103
Reputation: 47608
Yes, profilers are tools that can help you for that. This question provides a list of some profilers
Upvotes: 3