View Issue Details

IDProjectCategoryLast Update
0009811Shattered HavenGraphical BugOct 24, 2012 9:35 pm
ReporterGameMaker24 Assigned ToChris_McElligottPark  
Status resolvedResolutionfixed 
Summary0009811: "Dust Storm" caused by leaving and returning to the game window.
DescriptionI frequently use alt+tab to toggle between the game window and whatever applications I'm using. For the first time (revision 457), the colors become skewed when I return. In the demo OW, it looks as though a dust storm occurred. (see attached) I actually thought it was intentional at first, as it looks cool here.
TagsNo tags attached.
Internal WeightFix Before Major Release

Activities

GameMaker24

Oct 24, 2012 12:20 pm

manager  

alt+tab dust storm 1.png (1,250,540 bytes)

GameMaker24

Oct 24, 2012 12:21 pm

manager  

alt+tab dust storm 2.png (1,017,061 bytes)

GameMaker24

Oct 24, 2012 12:22 pm

manager   ~0028792

The first screenshot is taken upon returning to the editor after being away from the game's window. The second screenshot is taken upon returning to actual gameplay, in a different level. In the latter, it doesn't look nearly as great. ;)

Chris_McElligottPark

Oct 24, 2012 9:26 pm

administrator   ~0028793

That's pretty hilarious. I'm trying to figure out exactly what that is, just for the sake of curiosity. It's some sort of graphic being stretched really huge, but I'm not sure what graphic it is.

Anyway, the problem is a fairly straightforward one: when you alt-tab out, it's invalidating the device and making it so that the render textures get an invalid state on them. I'm using a render texture for the first time in this game, to cache the shadows, so that's why that's happening. What I need to do is make it so that when you regain focus it automatically invalidates all the render textures and recreates them.

As a side note, you can run the game in windowed mode if you want to -- if you're constantly alt-tabbing out and have extra screen space, that can be a great way to multitask. I run the game that way, since my desktop resolution is 1920x1080.

Chris_McElligottPark

Oct 24, 2012 9:35 pm

administrator   ~0028794

Fixed, thanks!

Issue History

Date Modified Username Field Change
Oct 24, 2012 12:20 pm GameMaker24 New Issue
Oct 24, 2012 12:20 pm GameMaker24 Status new => assigned
Oct 24, 2012 12:20 pm GameMaker24 Assigned To => Chris_McElligottPark
Oct 24, 2012 12:20 pm GameMaker24 File Added: alt+tab dust storm 1.png
Oct 24, 2012 12:21 pm GameMaker24 File Added: alt+tab dust storm 2.png
Oct 24, 2012 12:22 pm GameMaker24 Note Added: 0028792
Oct 24, 2012 9:26 pm Chris_McElligottPark Note Added: 0028793
Oct 24, 2012 9:35 pm Chris_McElligottPark Note Added: 0028794
Oct 24, 2012 9:35 pm Chris_McElligottPark Status assigned => resolved
Oct 24, 2012 9:35 pm Chris_McElligottPark Resolution open => fixed
Apr 14, 2014 9:29 am Chris_McElligottPark Category Bug - Graphical Issue => Graphical Bug