Minimizing/alt-tab out of fullscreen when loading causes some/all scenery to be missing

Bug #1265789 reported by Klaus Hupfer
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Open Rails
Fix Released
Low
James Ross

Bug Description

When using <ALT>-<TAB> during the startscreen the sceneryscreen is black or is displayed without the terrtex (-> attatched ZIP-File with OpenRailsLog.txt, Picture of Errorsituation, Picture after start of OR without <ALT>-<TAB>).

Cheers

  Klaus

Route: Phantasyroute, runs OK in MSTS

Revision history for this message
Klaus Hupfer (i-hupfer) wrote :
James Ross (twpol)
Changed in or:
assignee: nobody → James Ross (twpol)
James Ross (twpol)
Changed in or:
status: New → Triaged
importance: Undecided → Low
Revision history for this message
James Ross (twpol) wrote :

This is going to be a pain to fix, as it looks like an XNA bug/limitation.

When you alt-tab out of fullscreen, the DirectX device is "lost" (this is normal). However, XNA does not "fix" it (i.e. recover from the loss) until it next draws a frame - which won't happen until you alt-tab back in to the game. This means that there is no working DirectX device whilst the game in minimised.

Now, normally, anything you've created prior to the device being lost is automatically restored by XNA (which is why alt-tab out and back in works fine once in-game), but in this case, things are created *whilst* the device is lost and as a result XNA doesn't try and fix them. :(

summary: - Display Error when using ALT-TAB during Startscreen
+ Minimizing/alt-tab out of fullscreen when loading causes some/all
+ scenery to be missing
Revision history for this message
James Ross (twpol) wrote :

Please try out the new experimental option "Fast full-screen alt-tab" in X2114.

Revision history for this message
James Ross (twpol) wrote :

I'm going to mark this as 'fixed' because the experimental option is the only good solution I've found. I will check with other people but plan to make it non-experimental and default to 'on' shortly.

Changed in or:
milestone: none → 1.0
status: Triaged → Fix Committed
James Ross (twpol)
Changed in or:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.