GSRunner: Default to window but surfaceless when scripted

This commit is contained in:
Stenzek 2023-03-10 21:26:25 +10:00 committed by refractionpcsx2
parent 9efdeae3ac
commit ac02bcbe33
2 changed files with 5 additions and 2 deletions

View File

@ -285,7 +285,7 @@ void Host::ReleaseHostDisplay(bool clear_state)
HostDisplay::PresentResult Host::BeginPresentFrame(bool frame_skip) HostDisplay::PresentResult Host::BeginPresentFrame(bool frame_skip)
{ {
if (s_loop_number == 0) if (s_loop_number == 0 && !s_output_prefix.empty())
{ {
// when we wrap around, don't race other files // when we wrap around, don't race other files
GSJoinSnapshotThreads(); GSJoinSnapshotThreads();
@ -680,7 +680,7 @@ int main(int argc, char* argv[])
return EXIT_FAILURE; return EXIT_FAILURE;
} }
if (s_use_window.value_or(false) && !GSRunner::CreatePlatformWindow()) if (s_use_window.value_or(true) && !GSRunner::CreatePlatformWindow())
{ {
Console.Error("Failed to create window."); Console.Error("Failed to create window.");
return EXIT_FAILURE; return EXIT_FAILURE;

View File

@ -46,6 +46,9 @@ def run_regression_test(runner, dumpdir, renderer, upscale, renderhacks, paralle
if parallel > 1: if parallel > 1:
args.append("-noshadercache") args.append("-noshadercache")
# run surfaceless, we don't want tons of windows popping up
args.append("-surfaceless");
# disable output console entirely # disable output console entirely
environ = os.environ.copy() environ = os.environ.copy()
environ["PCSX2_NOCONSOLE"] = "1" environ["PCSX2_NOCONSOLE"] = "1"