Fix speed regression caused by the DrawerThread object being recreated every frame
This commit is contained in:
parent
3e59ebb48d
commit
4125da9fc3
2 changed files with 2 additions and 12 deletions
|
|
@ -114,7 +114,7 @@ void DrawerCommandQueue::Finish()
|
|||
|
||||
// Do one thread ourselves:
|
||||
|
||||
DrawerThread thread;
|
||||
static DrawerThread thread;
|
||||
thread.core = 0;
|
||||
thread.num_cores = (int)(queue->threads.size() + 1);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue