CommandQueueMT: Reduce lock contention in cases of single flusher

This commit is contained in:
Pedro J. Estébanez 2025-11-07 12:38:29 +01:00
parent b16a8b8a76
commit 4ba4558cf6
3 changed files with 16 additions and 6 deletions

View file

@ -74,7 +74,7 @@ class RenderingServerDefault : public RenderingServer {
uint64_t print_frame_profile_ticks_from = 0;
uint32_t print_frame_profile_frame_count = 0;
mutable CommandQueueMT command_queue;
mutable CommandQueueMT command_queue = CommandQueueMT(true);
Thread::ID server_thread = Thread::MAIN_ID;
WorkerThreadPool::TaskID server_task_id = WorkerThreadPool::INVALID_TASK_ID;