You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Added a spinlock template as well as a thread work pool class.
Also, optimized shader compilation to happen on threads.
This commit is contained in:
@@ -111,11 +111,11 @@ CommandQueueMT::CommandQueueMT(bool p_sync) {
|
||||
|
||||
for (int i = 0; i < SYNC_SEMAPHORES; i++) {
|
||||
|
||||
sync_sems[i].sem = Semaphore::create();
|
||||
sync_sems[i].sem = SemaphoreOld::create();
|
||||
sync_sems[i].in_use = false;
|
||||
}
|
||||
if (p_sync)
|
||||
sync = Semaphore::create();
|
||||
sync = SemaphoreOld::create();
|
||||
else
|
||||
sync = NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user