mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Merge pull request #112506 from RandomShaper/less_locky_cmd_queue
CommandQueueMT: Reduce contention + Fix race conditions
This commit is contained in:
commit
0e182ee83d
3 changed files with 34 additions and 10 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue