Switching windows cause some issues in game
Describe the bug
Sometimes, when i switch CDDA window to another one, and turn back, it causes several problems:
- Each switch reset the minimap window, like its in complete dark:
normally working map:
map after switch
map when i walked few tiles after switch

-
Sometimes it also causes a black screen for the whole game window, without the way to fix it
-
Once ive got the second bug on the map menu, and all map was visually corrupted
Map without a bug
Map with a bug
Map, if you move the camera to a few tiles

Steps to reproduce
- Play game
- Switch your game sometimes
- Bug (I cant find any another reasons, it feels pretty random)
Expected behavior
not having a bug
Screenshots
No response
Versions and configuration
- OS: Windows
- OS Version: 10.0 2009
- Game Version: 9da956a [32-bit]
- Graphics Version: Tiles
- Game Language: Russian []
- Mods loaded: [ [dda], [no_fungal_growth], [no_npc_food], [speedydex], [StatsThroughSkills], [stats_through_kills], [blazeindustries], [package_bionic_professions], [magiclysm], [crt_expansion], [crazy_cataclysm], [MMA], [extra_mut_scens] ]
Additional context
It can be related to some stuff with my system, i think, i played cdda while before but never has any of this issues
UPD: looks like second issue also can be fixed by making some stuff that reupdate the window, like open minimap if bug happened in main screen and vice versa
UPDD: Second issue provides when the error occur, and can be fixed by pressing I
Could you please post the contents of your config folder?
yes, of course dont know which file you need, so ill send you all of it config.zip
I am sorry, but I could not reproduce your issue even by using your config. What method do you use to switch to a different window? Alt+Tab?
- OS: Linux
- OS Version: LSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch; Distributor ID: Fedora; Description: Fedora release 35 (Thirty Five); Release: 35; Codename: ThirtyFive;
- Game Version: 524a7db [64-bit]
- Graphics Version: Tiles
- Game Language: System language []
- Mods loaded: [ Dark Days Ahead [dda], Disable NPC Needs [no_npc_food], No Fungal Growth [no_fungal_growth], Bionic Professions [package_bionic_professions] ]
I wonder if this is only reproducible on windows since it works fine for me as well, since I am also on Linux
as i said, i believe it related to my PC itself - maybe some driver stuff or version of Windows if it was a more common bug it should have got way more bug reports about it than it has now
I wonder if it might be related to hardware acceleration or something similar, did you try changing the renderer in the options?
Ugh, i never thought about it just changed direct3d -> direct3d11, and looks like it was fixed sorry for spending your time, and thank you
I wonder if it might be related to hardware acceleration or something similar, did you try changing the renderer in the options?
I tried "software", "opengl" and "opengles2". There was no direct3d or direct3d11 because they are Windows-specific.
IMHO this should be reopened - either we should drop the support for "direct3d" (BTW: what precisely does this option stand for and how does it differ from "direct3d11") or we should fix the bug.
GPU stuff may be arcane. If it is reliably reproducible with direct3d this is definitely a bug. If not, it may be some weird driver shenanigans. This needs further testing.
This needs further testing.
In this case this should be reopened.
I swear I had the same problem when playing my game on windows... But I can't reproduce it anymore, I will update here if it shows again while playing.
FWIW I'm able to reproduce this on 0.G stable in Windows on the direct3d renderer and the problem went away when I switched to direct3d11
As of the experimental branch:
- OS: Windows
- OS Version: MINGW/CYGWIN/MSYS2 on unknown Windows version
- Game Version: eca466b [64-bit]
- Graphics Version: Tiles
- Game Language: System language []
- Mods loaded: [ Dark Days Ahead [dda], Slowdown Fungal Growth [no_fungal_growth], No Monsters [Only_Wildlife] ]
Using direct3d or direct3d11 or direct3d12 or opengl or opengles2 (all renderer options) The overworld map does not go black when alt-tabbing. The minimap goes black when in normal game screen or in overworld map screen
Before picture:
After alt-tabbing out and back into CDDA:
After moving a few tiles to the left:
/Confirm Not sure about all the different renderer options but I'm seeing this happen occasionally on default graphics settings.
- OS: Windows
- OS Version: 10.0.19045.4291 (22H2)
- Game Version: cdda-experimental-2024-05-12-1705 39e2afa [64-bit]
- Graphics Version: Tiles
- Game Language: System language []
- Mods loaded: [ Dark Days Ahead [dda], Disable NPC Needs [no_npc_food], Portal Storms Ignore NPCs [personal_portal_storms], Slowdown Fungal Growth [no_fungal_growth] ]