fix(overhaul): integrate reviewed resize capture sequencing

This commit is contained in:
Erik 2026-09-05 13:26:06 +02:00
parent 58185285d3
commit 1e376c244b
5 changed files with 205 additions and 0 deletions

View file

@ -246,8 +246,19 @@ public sealed class RetailUiAutomationScriptRunner : IDisposable
var command = _commands[_index];
bool finished = Execute(command);
if (!finished) break;
bool yieldAfterResize = command.Parts.Length > 0
&& string.Equals(
command.Parts[0],
"resize",
StringComparison.OrdinalIgnoreCase);
_index++;
_activeIndex = -1;
// Resize is applied while automation is inside private presentation,
// after Vulkan prepared the current frame. Yield so the following
// framebuffer wait cannot observe the new window size until the
// next render has crossed its frame-boundary swapchain recreation.
if (yieldAfterResize)
break;
}
if (_index >= _commands.Count && !_completed)