Preventing Dynasty Warriors 8 Empires from visually freezing when alt tabbing.
This one is a somewhat specific fix, but I think it could apply to other games as well. I was having an issue where for some reason, whenever I would alt tab out of DW8E, the game would stop visually refreshing. I specify visually, because the sound was clearly still playing and I could hear myself pressing buttons in the game.
Before we get into it, I want to link to where I found the command for this which is here. Important to note this is better than the usual way of launching gamescope and connecting it, because this command does it all in one.
If this sounds similar to your issue, we can try fixing it using gamescope. I'm also assuming you are using steam. The fix is pretty simple. First we need to install gamescope. I'm on a Fedora based system, so for me the command for this is:
Sudo dnf install gamescope
If you're debian based, like Linux Mint, Pop OS, or Ubuntu, it'll be:
Sudo apt install gamescope
If you already have it installed, no worries, it just won't do anything besides tell you it's already installed. First of all, we need to figure out which display number gamescope is going to launch on. Press control + alt + t, or open a terminal window however you see fit, and type
Scroll down, and eventually you'll see a line that looks like this:
This means my display is 1, but it might be different for you.
Now go back to steam, right click and click properties.
It'll open this window. Click on the launch options box below it, and paste in this:
gamescope --force-grab-cursor --backend sdl -H 1080 & DISPLAY=:1 gamemoderun %command%
A couple things to note here. For one, the number for DISPLAY=:1 needs to match the number we got earlier, which for me was 1. Also, the value to the right of -H is your monitors resolution, so you might need to change that depending on what you have. Otherwise, the game will now launch using gamescope, and you'll notice that tabbing out doesn't even make it minimize in fullscreen! Not only is this way less annoying, but it prevents the bug from happening because there is no minimization.
Hope this helps! Oh and one last thing-- if you're playing DW8E or DW8XL, make sure to use GE-Proton7-55. This version specifically can load up the intro movies with no issue.