Cataclysm-DDA icon indicating copy to clipboard operation
Cataclysm-DDA copied to clipboard

Switching windows cause some issues in game

Open GuardianDll opened this issue 4 years ago • 14 comments

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: image map after switch image map when i walked few tiles after switch image

  • 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 image Map with a bug image Map, if you move the camera to a few tiles image

Steps to reproduce

  1. Play game
  2. Switch your game sometimes
  3. 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

GuardianDll avatar Dec 21 '21 17:12 GuardianDll

Could you please post the contents of your config folder?

hexagonrecursion avatar Dec 26 '21 14:12 hexagonrecursion

yes, of course dont know which file you need, so ill send you all of it config.zip

GuardianDll avatar Dec 26 '21 20:12 GuardianDll

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] ]

hexagonrecursion avatar Jan 01 '22 08:01 hexagonrecursion

I wonder if this is only reproducible on windows since it works fine for me as well, since I am also on Linux

NetSysFire avatar Jan 01 '22 08:01 NetSysFire

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

GuardianDll avatar Jan 01 '22 13:01 GuardianDll

I wonder if it might be related to hardware acceleration or something similar, did you try changing the renderer in the options?

NetSysFire avatar Jan 01 '22 13:01 NetSysFire

Ugh, i never thought about it just changed direct3d -> direct3d11, and looks like it was fixed sorry for spending your time, and thank you

GuardianDll avatar Jan 01 '22 13:01 GuardianDll

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.

hexagonrecursion avatar Jan 01 '22 14:01 hexagonrecursion

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.

NetSysFire avatar Jan 01 '22 15:01 NetSysFire

This needs further testing.

In this case this should be reopened.

hexagonrecursion avatar Jan 02 '22 08:01 hexagonrecursion

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.

Termineitor244 avatar May 04 '22 19:05 Termineitor244

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

philipdnichols avatar Nov 15 '23 22:11 philipdnichols

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: Untitled After alt-tabbing out and back into CDDA: Untitled After moving a few tiles to the left: Untitled

CoroNaut avatar Nov 21 '23 12:11 CoroNaut

/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] ]

TealcOneill avatar May 13 '24 04:05 TealcOneill