wip multithreaded texture load

This commit is contained in:
veclavtalica
2025-02-09 07:34:16 +03:00
parent 037548436d
commit 5a7d7433d1
5 changed files with 158 additions and 52 deletions

View File

@ -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 */