popsUlfr / SDH-PauseGames

Decky Loader Plugin for Steam Deck to Pause and Resume games
GNU General Public License v3.0
76 stars 8 forks source link

Feature Request: Add unpause delay when waking from sleep #12

Open Gwindalmir opened 7 months ago

Gwindalmir commented 7 months ago

I'd like to see a delay added when waking up the deck from sleep, before the game is unpaused when using 'Pause on Sleep' option.

Some games have issues with network disconnects. In particular, I noticed this with Batman: Arkham Asylum. Despite it being a single player game (afaik), it seems to require a network connection. Sometimes when I put it to sleep, it's fine when it wakes. However one time I got a message that the connection to the server was lost, and it kicked me out of the game, losing some progress. Since then I either don't put the deck to sleep while I have it running, or I manually pause it before putting it to sleep.

Ideally, I'd like the plugin to wait until networking is restored before unpausing the game/process (with a possible limit to wake after x seconds even if there's no connection).

Obviously I don't expect this to have any benefit with actual multiplayer games, like MMOs, but games like Arkham Asylum and Borderlands, it would be helpful.