riksweeney / edgar

A 2D platform game with a persistent world. When Edgar's father fails to return home after venturing out one dark and stormy night, Edgar fears the worst: he has been captured by the evil sorcerer who lives in a fortress beyond the forbidden swamp.
https://www.parallelrealities.co.uk/games/edgar
116 stars 28 forks source link

Fullscreen problem windows 10 #63

Closed lesleyrs closed 3 weeks ago

lesleyrs commented 1 year ago

When alt-tabbing (or pressing windows key by accident) out of the game, the game either crashes or it starts flashing the screen when resolution changes, I also have some screen tearing in fullscreen.

It's supposed to just revert resolution change and go to the background.

I tried changing fullscreen to fullscreen_desktop but that just made the game quit on any key press.

Btw I was reading your making of page and you mentioned compiling with 02 changed behaviour: https://www.parallelrealities.co.uk/features/makingOfLOE.php

Do you remember what it was that changed? Just curious.

riksweeney commented 1 year ago

The compiling issue was to do with the fish in one area of the game. If they hit an underwater door they'd fly off the screen. Once this issue was reported to me I removed the O2 flag as it was only applied to the production builds.

I don't readily have access to a Windows machine anymore, so I'm not sure what to do about the crashes you're experiencing. If I manage to get access to one though I'll see if I can reproduce the issue.

lesleyrs commented 1 year ago

Edit again: It does actually crash on Linux sometimes when alt tabbing from fullscreen as well.