LunarG / gfxreconstruct

Graphics API Capture and Replay Tools for Reconstructing Graphics Application Behavior
https://vulkan.lunarg.com/doc/sdk/latest/linux/capture_tools.html
MIT License
413 stars 123 forks source link

[replay] Background is not drawn during the loading screen of some apps #1627

Open ziga-lunarg opened 4 months ago

ziga-lunarg commented 4 months ago

There are multiple android games where during the loading screen in the replay the background will just be some green color, which I assume is the clear color. Happens with trim and without it.

panos-lunarg commented 4 months ago

Could it be an uninitialized AHB buffer? AHB can be left uninitialized when at capture we fail at locking them and dumping their content, AHB is a weird format which we cannot regenerate at replay and perhaps other reasons

ziga-lunarg commented 4 months ago

I have not thought about that, but good idea, I'll check it out

ziga-lunarg commented 4 months ago

The games that have issues with the background rendering do not have any AHB warnings. And I wrongly assumed the green color was from a clear, it's actually a draw.

panos-lunarg commented 4 months ago

I remember seeing a green background in the NiNoKuNi game, there was supposed to be a video playing in the background in the game's main menu but when replaying there was a shade of green instead of the video. I don't remember how exactly this failed but it was because of a weird AHB format which is not in the list of supported AHB formats

bradgrantham-lunarg commented 4 months ago

I wonder if we could (1) save a checkerboard or maybe even the text "AHB Not Saved" if we can't lock the buffer to read it out and (2) checkerboard or "AHB Not Replayed" if we can't create a buffer with the saved format.

panos-lunarg commented 4 months ago

We definitely print a warning (used to be an error) when we can't lock the AHB, during both capture and replay