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:
@@ -58,7 +58,7 @@ class Physics2DServerWrapMT : public Physics2DServer {
|
||||
volatile bool step_thread_up;
|
||||
bool create_thread;
|
||||
|
||||
Semaphore *step_sem;
|
||||
SemaphoreOld *step_sem;
|
||||
int step_pending;
|
||||
void thread_step(real_t p_delta);
|
||||
void thread_flush();
|
||||
|
||||
Reference in New Issue
Block a user