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:
parent
ae54ac290d
commit
68922c1eeb
3 changed files with 16 additions and 11 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue