Moving World.SaveOption to StandardSaveStrategy.SaveOption, as it's only used and applicable there. Setting Dynamic Save Strategy to run whenever there are more than two cores.

This commit is contained in:
asayre 2012-02-11 04:36:54 +00:00
parent ae54ac290d
commit 68922c1eeb
3 changed files with 16 additions and 11 deletions

View file

@ -31,14 +31,17 @@ namespace Server
{
int processorCount = Core.ProcessorCount;
#if Framework_4_0
if (processorCount > 2)
{
return new DynamicSaveStrategy();
}
#else
if (processorCount > 16)
{
#if Framework_4_0
return new DynamicSaveStrategy();
#else
return new ParallelSaveStrategy(processorCount);
#endif
}
#endif
else
{
return new DualSaveStrategy();