Improve threading

This commit is contained in:
Piotr Krygier committed 2023-09-11 11:15:25 +02:00
1 parent 507db80fb1
commit 863f502dde
3 files changed
+7 -5

No files matched your search

+2 -1
View File
@@ -10,6 +10,7 @@ int main(int argc, char** argv)
rse_graphics_init();
rse_create_task(&graphics_task, (thread_worker_t)rse_graphics_run, NULL);
rse_task_join(&graphics_task);
return 0;
rse_task_exit(); //TODO: Figure out why program is so much faster if we don't join the graphics_task. WTF.
}