wip multithreaded texture load
This commit is contained in:
@ -27,8 +27,12 @@ static int worker_thread(void *udata) {
|
||||
if (SDL_SemWaitTimeout(workers_job_semaphore, 100) == SDL_MUTEX_TIMEDOUT)
|
||||
continue;
|
||||
|
||||
/* process models, which will trigger texture loads */
|
||||
if (model_load_workers_thread())
|
||||
continue;
|
||||
|
||||
if (textures_load_workers_thread())
|
||||
continue;
|
||||
}
|
||||
|
||||
/* let the main thread collect it */
|
||||
|
Reference in New Issue
Block a user