Disable multithreading in R_DrawMaskedList
This commit is contained in:
1 parent
3c282b5022
commit
5a44afcd9f
1 file changed
+2
-10
+2
-10
@@ -2971,16 +2971,8 @@ static void R_DrawMaskedList(drawnode_t* head)
|
||||
{
|
||||
drawspandata_t ds = {};
|
||||
next = r2->prev;
|
||||
#ifdef HAVE_THREADS
|
||||
srb2::ThreadPool::Sema tp_sema;
|
||||
srb2::g_main_threadpool->begin_sema();
|
||||
#endif
|
||||
R_DrawSinglePlane(&ds, r2->plane, cv_parallelsoftware.value);
|
||||
#ifdef HAVE_THREADS
|
||||
tp_sema = srb2::g_main_threadpool->end_sema();
|
||||
srb2::g_main_threadpool->notify_sema(tp_sema);
|
||||
srb2::g_main_threadpool->wait_sema(tp_sema);
|
||||
#endif
|
||||
// Force disable multithreading since it is usually slower because of waiting for each plane to render
|
||||
R_DrawSinglePlane(&ds, r2->plane, false);
|
||||
R_DoneWithNode(r2);
|
||||
r2 = next;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user