Made mesh scheduling fairer

This commit is contained in:
Joshua Barretto 2019-07-04 19:03:44 +01:00
parent 0c9843999b
commit d2ccbafe59

View File

@ -151,7 +151,7 @@ impl Terrain {
.map(|worker_tick| worker_tick < todo.started_tick) .map(|worker_tick| worker_tick < todo.started_tick)
.unwrap_or(true) .unwrap_or(true)
}) })
.min_by_key(|todo| todo.active_worker.unwrap_or(0)) .min_by_key(|todo| todo.active_worker.unwrap_or(todo.started_tick))
{ {
if client.thread_pool().queued_count() > 0 { if client.thread_pool().queued_count() > 0 {
break; break;