Fix performance hit due to priority being recalculated all the time

master
Marc Gilleron 2020-08-28 18:30:54 +01:00
parent 28b5ae6580
commit f10209440f
1 changed files with 1 additions and 0 deletions

View File

@ -142,6 +142,7 @@ void VoxelThreadPool::thread_func(ThreadData &data) {
} else {
item.cached_priority = item.task->get_priority();
item.last_priority_update_time = now;
}
}