Fix performance hit due to priority being recalculated all the time
parent
28b5ae6580
commit
f10209440f
|
@ -142,6 +142,7 @@ void VoxelThreadPool::thread_func(ThreadData &data) {
|
|||
|
||||
} else {
|
||||
item.cached_priority = item.task->get_priority();
|
||||
item.last_priority_update_time = now;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue