im asking here about desktop apps like windows games..(both fullscreen and windowed)
would like to do some solid good game pause
1) how it should behave for the player ? should game be paused automatic on alt+tab or maybe even on mouse going out of window and automaticaly restarted again on second alt_tab ? or are there some reasons to leave it unpaused in
such cases?
It seem to me that it better pause/restart this heavily though im not quite sure
2) how to implement that? the story is that i can just not call the game loop
when in pause state, then last frame would be lasting in the window, but
anyway i need to generate some contents view on OnPaint request that would
be sent anyway - to do so I think i would need to separate functions calculating game frame - one is like CalcFrame() and the second more like CalcFrameButNoAdvance(), first for normal game frame and the second only to refresh the wiew but with no advance movement in the game...
do people really do this? this two versions of CalcFrame? or they use some differrent approach to game pausing than this "freeze frame" im talking about?
3) can i do yet something to improve game pausing? i dont know maybe to help
system swapping unused ram to disk or the opposite do not allow him to do that thus preventing slowdowns, or what?