CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
10.32k stars 4.14k forks source link

Switching windows cause some issues in game #53645

Open GuardianDll opened 2 years ago

GuardianDll commented 2 years ago

Describe the bug

Sometimes, when i switch CDDA window to another one, and turn back, it causes several problems:

normally working map: image map after switch image map when i walked few tiles after switch image

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

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

hexagonrecursion commented 2 years ago

Could you please post the contents of your config folder?

GuardianDll commented 2 years ago

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

hexagonrecursion commented 2 years ago

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?

NetSysFire commented 2 years ago

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

GuardianDll commented 2 years ago

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

NetSysFire commented 2 years ago

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

GuardianDll commented 2 years ago

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

hexagonrecursion commented 2 years ago

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.

NetSysFire commented 2 years ago

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.

hexagonrecursion commented 2 years ago

This needs further testing.

In this case this should be reopened.

Termineitor244 commented 2 years ago

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.

philipdnichols commented 10 months ago

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

CoroNaut commented 10 months ago

As of the experimental branch:

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

TealcOneill commented 4 months ago

/Confirm Not sure about all the different renderer options but I'm seeing this happen occasionally on default graphics settings.