Reduce time spent on chunk loading
Not sure why this is so slow. Will find out at some point.
This commit is contained in:
parent
d27882cdec
commit
a476e04e32
@ -378,16 +378,9 @@ namespace TrueCraft
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (ChunksToSchedule.Count != 0)
|
|
||||||
{
|
|
||||||
int attempts = 50;
|
|
||||||
while (attempts-- > 0)
|
|
||||||
{
|
|
||||||
Tuple<IWorld, IChunk> t;
|
Tuple<IWorld, IChunk> t;
|
||||||
if (ChunksToSchedule.TryTake(out t))
|
if (ChunksToSchedule.TryTake(out t))
|
||||||
ScheduleUpdatesForChunk(t.Item1, t.Item2);
|
ScheduleUpdatesForChunk(t.Item1, t.Item2);
|
||||||
}
|
|
||||||
}
|
|
||||||
EnvironmentWorker.Change(1000 / 20, 0);
|
EnvironmentWorker.Change(1000 / 20, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user