Indeed. However it's necessary to use that command on both the main PID and all its child processes, otherwise you will run into issues like the game video stopping but the game logic still running in the background.
This is just a tool to automate finding the pid (via hyprctl or other ways) and correctly suspending it.
Afaik saving to swap isn't possible as it's something managed by the kernel, although you can try tweaking cgroups.
Nyrna also mentions that this isn't currently possible.
No, it uses hyprctl to get the pid of the current active window.
Which compositor are you using? It might be possible to get the pid in a different way.
Haha, yes! Ctrl+Z sends a TSPT signal to a terminal process, while this script sends a STOP signal to every process in a game's process tree.
Both get resumed with a SIGCONT so they're kinda similar.
Only locally, so that your local computer can access your server locally. Then the Cloudflare proxy will allow you to connect to it from the internet securely through a two-factor authentication or any other access type you choose, without opening any port to the internet. It's all explained in this section.
Wow, I wish I knew this workaround during my early gameplay lol.