Move macOS benchmarking to NSApp rendering loop, makes example windows visible vs. headless

This commit is contained in:
Stephen Saunders 2022-08-01 16:52:06 -04:00
parent 1b3fe76cdb
commit 62f6dcf767
2 changed files with 22 additions and 1 deletions

View file

@ -1256,7 +1256,7 @@ int main(const int argc, const char *argv[])
vulkanExample->setupWindow(nullptr);
vulkanExample->prepare();
vulkanExample->renderLoop();
delete(vulkanExample); // SRS - handle benchmarking case, normally deleted by applicationWillTerminate() event handler
delete(vulkanExample);
}
return 0;
}