Dreikblack Posted November 6 Share Posted November 6 Only closing console and stopping debug manually can close an app if fps limit was seted in World::Render() #include "UltraEngine.h" using namespace UltraEngine; int main(int argc, const char* argv[]) { //Get the displays auto displays = GetDisplays(); //Create a window auto window = CreateWindow("Ultra Engine", 0, 0, 1280, 720, displays[0], WINDOW_CENTER | WINDOW_TITLEBAR); //Create a world auto world = CreateWorld(); world->RecordStats(); //Create a framebuffer auto framebuffer = CreateFramebuffer(window); //Create a camera auto camera = CreateCamera(world); camera->SetClearColor(0.125); //Main loop while (window->Closed() == false and window->KeyDown(KEY_ESCAPE) == false) { world->Update(); world->Render(framebuffer, false, 120); } return 0; } Quote Link to comment Share on other sites More sharing options...
Solution Josh Posted 6 hours ago Solution Share Posted 6 hours ago I fixed this by removing reliance on Win32 WaitForSingleObject, which is known to cause deadlocks under some conditions. The rendering thread does not create or manage windows, so I still don't know exactly why this was happening, but whatever it's fixed. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.