Fix performance hit due to priority being recalculated all the time
This commit is contained in:
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…
x
Reference in New Issue
Block a user