MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / _thread_loop

Method _thread_loop

servers/rendering/rendering_server_default.cpp:397–406  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

395}
396
397void RenderingServerDefault::_thread_loop() {
398 DisplayServer::get_singleton()->gl_window_make_current(DisplayServer::MAIN_WINDOW_ID); // Move GL to this thread.
399
400 while (!exit) {
401 WorkerThreadPool::get_singleton()->yield();
402 command_queue.flush_all();
403 }
404
405 DisplayServer::get_singleton()->release_rendering_thread();
406}
407
408/* INTERPOLATION */
409

Callers

nothing calls this directly

Calls 4

flush_allMethod · 0.80
yieldMethod · 0.45

Tested by

no test coverage detected