unfortunatley taron, that wont work, as the debugger stops the main thread before it can send the switchout event, so the timer just keeps counting. It does work as a pause when the game dosent have focus, ie alt tab out etc.
The debugger breaking into the game dosent give it a chance to respond as it freezes the main thread, but while its being debugged the update commands are still being added because the timming thread is still running!.
If that sort of code was embeded into the timing thread it would work great. But I dont think it is. So the only other solution I can think of is... if there is someway of detecting that there is a few hundred events sitting on the que, then ignoring all the update events.
But how can I get the number of events on the queue.
well I set it up like this...........
which seems to do the trick, since I set the FPS as 60, I am assuming that the timer counts 60 times a second?. In theory, it should only ever flush the Que when teh debugger stops the code. If anyone has any better ideas let me know.