You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-19 14:31:59 +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:
@@ -476,7 +476,7 @@ EditorResourcePreview::EditorResourcePreview() {
|
||||
thread = NULL;
|
||||
singleton = this;
|
||||
preview_mutex = Mutex::create();
|
||||
preview_sem = Semaphore::create();
|
||||
preview_sem = SemaphoreOld::create();
|
||||
order = 0;
|
||||
exit = false;
|
||||
exited = false;
|
||||
|
||||
Reference in New Issue
Block a user