dwarfcorp icon indicating copy to clipboard operation
dwarfcorp copied to clipboard

XNA: art stops rendering when paused and clicked out of screen

Open com1clyf3 opened this issue 6 years ago • 15 comments

5/29/18 - This is being changed to a tracking issue for anything related to the XNA minimizing issue.

image

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

com1clyf3 avatar May 07 '18 21:05 com1clyf3

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.

mklingen avatar May 09 '18 23:05 mklingen

As far as I can tell, I've fixed this bug in XNA. Again it may be better to just go to FNA soon.

mklingen avatar May 12 '18 14:05 mklingen

Still occurring in 5fee6751

com1clyf3 avatar May 15 '18 01:05 com1clyf3

This should be fixed.

mklingen avatar May 19 '18 18:05 mklingen

  1. Start game
  2. Pause game.
  3. Minimize game
  4. Enter and unpause game.
  5. Observe one dwarf is no longer rendering their sprite.

This only ever affects one dwarf at a time.

image

5c6a30a6

com1clyf3 avatar May 29 '18 18:05 com1clyf3

XNA issues still occurring on 236e5063

image

com1clyf3 avatar Jul 02 '18 20:07 com1clyf3

This is because objects don't update when paused. Fixing is likely more work than is worth it right now.

Blecki avatar Jul 02 '18 20:07 Blecki

@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.

mklingen avatar Jul 07 '18 13:07 mklingen

This get fixed?

com1clyf3 avatar Aug 23 '18 21:08 com1clyf3

For some reason it won't let me print screen it. But repro is still the same.

Still occurs on 5bd9f3c4

com1clyf3 avatar Aug 31 '18 20:08 com1clyf3

I don't really have any intention of fixing this bug before release.

mklingen avatar Sep 02 '18 18:09 mklingen

Why? This is a huge bug.

com1clyf3 avatar Sep 05 '18 20:09 com1clyf3

image

Still occurring in a6e468d2

com1clyf3 avatar Sep 06 '18 20:09 com1clyf3

Confirmed only happening in XNA, so closing.

com1clyf3 avatar Sep 13 '18 00:09 com1clyf3

FNA is not making it to release, so this has to be fixed. I have fixed it for dwarfs. More minimization issues will occur.

mklingen avatar Oct 13 '18 13:10 mklingen