dwarfcorp
dwarfcorp copied to clipboard
XNA: art stops rendering when paused and clicked out of screen
5/29/18 - This is being changed to a tracking issue for anything related to the XNA minimizing issue.
When you click back into a paused minimized window, the terrain and sprites are gone. You can fix this by going up or down a slice, but the sprites will still be missing, along with preview art for lots of build features.
1.Start game in window. 2. Pause game. 3. Click out of game and do something for a minute or two. 4. Click back into game. Observe missing terrain and sprites. 5. Change the slices to observe terrain pop in.
126d7ff8
I was able to reproduce, and it seems to be more of the same garbage we've seen recently with the graphics device getting rebuilt causing all of our textures to get disposed simultaneously. Slicing the terrain has the effect of rebuilding the geometry.
I tried to reproduce this in FNA and was unable to do so.
I recommend as an emergency stopgap for this and other issues, we should take the plunge and abandon the XNA build and start distributing FNA builds only.
As far as I can tell, I've fixed this bug in XNA. Again it may be better to just go to FNA soon.
Still occurring in 5fee6751
This should be fixed.
- Start game
- Pause game.
- Minimize game
- Enter and unpause game.
- Observe one dwarf is no longer rendering their sprite.
This only ever affects one dwarf at a time.
5c6a30a6
XNA issues still occurring on 236e5063
This is because objects don't update when paused. Fixing is likely more work than is worth it right now.
@Blecki actually this is still the same nasty bug rearing its head again. When the composite gets disposed, we need to regenerate (invalidate) all of the composite animations.
This get fixed?
For some reason it won't let me print screen it. But repro is still the same.
Still occurs on 5bd9f3c4
I don't really have any intention of fixing this bug before release.
Why? This is a huge bug.
Still occurring in a6e468d2
Confirmed only happening in XNA, so closing.
FNA is not making it to release, so this has to be fixed. I have fixed it for dwarfs. More minimization issues will occur.