Tab out crash. Assistance needed

my previous computer anytime I hit the Windows key I could Tab out of game to do other things. Now whenever I tab out the game automatically crashes. Is there another key combination I can use to Tab out a game without it crashing?

Does alt + tab work?

Not at the current time

What’s your current setting? borderless window or full screen? Tabing out from full screen doesn’t work on Cdda with Directx.

I’ll check as soon as I get home.

That fixed it. Thank you Nietsa :smiley: :smiley:

Glad I could help!

For those wondering what they should do if they encounter this problem, if you are on Windows, using the tiles version of the game and the DirectX renderer you should use a borderless windows with a width and height that match your screen resolution (sometime you won’t be able able to exactly match your screen resolution, but an approximation will do). You can then alt-tab (or use the Windows home key) without any problems.

This is a known issue in the game. I debugged it up to the directx layer and there’s definitely something wrong because the renderer is reset when the windows is minimized during the alt-tab operation, but I couldn’t understand why. I hope to be able to provide a patch for this bug in the near future.

How-to

  • Go to Settings > Options > Graphics and set the Fullscreen option to windowed borderless

  • Set Terminal Width and Terminal Height to match your screen resolution:

(Note: look at the comment below the Options at the top of the window, it will tell you how much pixels your window will be)

image

2 Likes

/.

Is there a translation error happening between the game and the renderer of directx

Technically the problem is a bit hard to understand. I posted a detailed technical analysis of the problem.
Basically, the DirectX renderer is invalidated when the window is transitioning from fullscreen to minimized. This seems to be a normal behavior to some extent (and as far I can understand it) but I don’t really know if SDL should reinstate a new renderer once it has been invalidated or if it’s the job of the game. I couldn’t find any details about this in the SDL documentation.

So there’s really something fishy here, but it’s not clear what the game should do at that point (when the renderer has been invalidated). Moreover the game don’t receive any feedback from SDL and I believe SDL is completely oblivious of the fact the renderer has been invalidated since it continue to call some APIs on the renderer…

1 Like

How about a work around the invalidated bit altogether by telling the game to match the screen as a default so it won’t crash. While allowing the user to adjust the screen scale as an option?

1 Like

Yes it would be a good option; There are some discussions in this issue about the default screen size. One of those options could be “Windowed Bordeless with size adjusted to max screen size”.

1 Like

If possible keep the option of full screen though. In case some people don’t need to tab out :wink: