Fix speed regression caused by the DrawerThread object being recreated every frame

This commit is contained in:
Magnus Norddahl 2017-01-03 04:29:06 +01:00
commit 4125da9fc3
2 changed files with 2 additions and 12 deletions

View file

@ -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);