Can't do Alt+Tab

Player resolved Player setup
benjosivo [github] · 6 months ago

Issue description

Hello, I can't do alt+tab or the game crash. I also can't change the resolution from fullscreen to borderless or windowed.

Reproduction steps

  1. Load game
    2.Settings
    3.Change from fullscreen to borderless/windowed

Game version and build number

v0.8.2c b559

Operating system

Windows

Attachments

poltime poltime · 6 months ago

It would be helpful if you wrote down what happens on the screen when you try to change the settings.

benjosivo [github] · 6 months ago

When I change other settings, there is no problem. However, when I change the screen mode (fullscreen, windowed, or borderless), the screen either goes black or returns to my desktop.

poltime poltime · 6 months ago

Try this:
Find the file CaptainOfIndustry.exe in the folder with the game.
Right-click -> Properties -> Compatibility tab.
Check the box "Disable full-screen optimizations".
Click "Apply".

Ahipez [github] · 4 months ago

Hi MaFi Games team,

I recently played Captain of Industry on my friend's PC and I just wanted to say that the game is absolutely amazing. We really enjoyed it.

We ran into what looks like the same Alt+Tab / minimize crash issue described here.

The game launched, but it crashed every time it was minimized or when switching away from it with Alt+Tab. Switching display modes also seemed unstable.

I investigated the crash logs a bit. The failing module was:

NvPresent64.dll

The crash path also seemed to involve:

NvPresent64.dll
dxgi.dll
UnityPlayer.dll
gameoverlayrenderer64.dll
nvspcap64.dll

Steam Overlay and NVIDIA Overlay were disabled during testing.

We also tried changing the registry value:

Screenmanager Fullscreen mode = 1

That helped the game launch properly, but it did not fix the crash when minimizing / Alt+Tabbing.

The workaround that finally fixed the issue was adding these Steam launch options:

-force-d3d11-bitblt-model -screen-fullscreen 1 -screen-width 2560 -screen-height 1440

After adding this, the game no longer crashed when minimized or when switching away from it.

It looks like the issue may be related to the default D3D11 / DXGI / NVIDIA present or swapchain path when the game loses focus. Forcing the D3D11 BitBlt model seems to avoid the crash on this setup.

I attached a minimal logs archive. I can also provide the latest crash.dmp if needed.

Hope this helps you investigate the issue.

P.S. I played the game on my friend's PC and loved it. If you ever decide to gift me a copy of Captain of Industry, I would be extremely happy. Either way, thank you for making such a great game!

README.txt, Unity-Player-prev.log, Unity-Player.log, Player.log, 26-06-03_15-48-24_5555.log, 26-06-03_15-51-18_2589.log, Windows-Application-Errors.txt

6 attachments only for registered users

Closed as ☑️ Player resolved

14 Showing 1–7 of 7