OBS or game window automatically closes when I need them to stay open

Heidirs

New Member
Usually when I'm playing a game, I have the game full screened on monitor 1 and obs opened on monitor 2. Using the "windows" button on the keyboard, I'm able to switch back and forth between the game and obs (usually just to hit start and stop recording) without either window closing on me. I also just found out Alt-Tab does the same thing.

However, my problem seems to occur with older games that don't have have a natural 1920 x 1080 resolution. When I run these games and press the "windows" button to switch over to obs, the game AND obs will automatically minimize and obs will automatically reopen on monitor 1. This is really annoying when I'm trying to get the video resolution of obs to match the game. I have to reopen the obs and game windows several times and go back and forth between them until I get the resolution right. Once that's set, I can press record on obs before opening up the game. Then, open up the game and play as usual. When I was ready to quit, I would press the "windows" button, the game and obs would still do their switch around, but I was done recording anyway and it didn't matter.

But now, I'm trying to play another old game and none of the resolution settings seem to work. So I'm going to have to manually stretch the source on the obs screen. The problem is, if I press the "windows" button to switch screens, the game and obs close. I can't have the game up and obs up at the same time to adjust the source because as soon as I switch from the game to the next screen, both programs close.

I don't know why this is only happening with certain games and not others. All these games have been on Steam, so I know that's not the issue. It just seems to be older games that don't have a natural 1920 x 1080 resolution. Newer games, I can switch back and forth between the programs without either of them closing. And I know technically, I should be playing with a "windowed borderless" mode, but I don't think some of these old games even have that setting. And I didn't set it to that for the newer games.

What am I doing wrong?
 

Heidirs

New Member
As I look further into this, it seems to be an individual game / Steam issue with window switching. Not an obs thing. So just something I'm going to have to find a work around for every game this is an issue with, sadly.
 

koala

Active Member
These games switch to true fullscreen with their own resolution different to the Windows desktop resolution. Some old games for example switch to 1024x768. If your monitor is 1920x1080, it scales the game resolution up to cover the full screen, so you think it's 1920x1080, but actually it is just a bloated up 1024x768.

If you want to record such a game with OBS, you need to set the canvas and output size to the actual resolution the game is running in. Go to Settings->Video, and if your game is actually 1024x768 (could be anything else, of course), enter this resolution as canvas and output resolution. This resolution is too small to show your Windows desktop properly (which is 1920x1080), but as soon as you run the game, it switches to its own resolution, and it's exactly the right resolution.

If you have games with different resolutions, and you're tired of switching canvas sizes back and forth, create a different OBS profile for each resolution (look into the Profile menu of OBS) and switch profiles accordingly.
 
Top