Tomash667 / carpg

Combination of action rpg with roguelike.
https://carpg.pl
MIT License
16 stars 15 forks source link

Black screen upon quitting title screen #405

Open BottledByte opened 4 years ago

BottledByte commented 4 years ago

I encountered a quite nasty bug which, as this issue's title says, resulted in blackscreen upon quitting the game. I was unable to get any picture back, ALT+F4 closed background applications and CTR+ALT+DEL did not show its typical screen, but when I pressed the power button, the computer turned off gracefully and everything was normal again. It happened to me a few times in a short period of time. It seems it has something to do with settings menu, because I was always in this menu and then just pressed quit (didn't played the game in that session) prior to this blackscreen.

It happened in Fullscreen mode with 1920x1080 (60 Hz) resolution. Glow, Normal map, Specular map and Vsync were turned on. Multisampling was on, but, sadly, I do not remember its precise setting when it first happened, but last time there was "x8 (quality 3)". Game version: 0.13.

I estimate that it is an error in DirectX/3D context release, because I have heard about similar bug.

PS. If this report is a duplicate of some bug already submitted, then I had to overlooked it. If some information is missing in this report, I may to add it if required.

Lemiczek commented 4 years ago

This black screen issue seems to be caused by the Windows Anniversary Update. My friend has indeed replicated this issue on Windows 10 - 1607 while I could not on Windows 10 - 1904.

Solution: Borderless Fullscreen Mode as mentioned in the forum post here: https://answers.microsoft.com/en-us/windows/forum/games_windows_10/black-screen-issue-for-exclusive-fullscreen-mode/89040af9-c3f9-40d0-a92c-44d1f4c56ab3?auth=1 As mentioned in the forum post above, you may log out of your account and then log back in, in order to get back your video output.

Tomash667 commented 4 years ago

If @Lemiczek is right i don't think this problem can be fixed easily.

Some options:

On my side i can:

BottledByte commented 4 years ago

The computer I played the game on really has Windows Anniversary Update, so it is definitely a system fault. Interesting is that blackscreen happens only on my native resolution set and multisampling on. Other resolutions are unaffected by it and without multisampling, native resolution works nicely, too.

As I see it, the most simple solution to reslove this is to change the graphics settings a bit. But to be honest, I think that fullscreen windowed mode (#106) would help to resolve some potential future problems, because I have seen problems with exclusive fullscreen mode on other computers and programs, and switching to windowed fullscreen mode typically resolved the issues.

Anyway, thanks @Lemiczek for finding the article and big thanks @Tomash667 for creating this game (I admire that you created this game from scratch). I did not expect such quick answer.

PS. I have lots of other questions and suggestions about the game (and it's engine, specifically). I don't think that these questions belong here on github or the forums and I have seen that you set up discord server recently. Where should I ask them? (I prefer discord above forums).

Tomash667 commented 4 years ago

@BottledByte just ask on discord, i try to keep it open all the time :)