revert forced 4.0 migration -- many users are still dependent on 2.0

This commit is contained in:
mark 2012-03-07 13:47:33 +00:00
parent 7b48ebb7e6
commit 4bcde77cc2
13 changed files with 531 additions and 46 deletions

View file

@ -18,6 +18,8 @@
*
***************************************************************************/
#if Framework_4_0
using System;
using System.Collections.Generic;
using System.Text;
@ -311,4 +313,5 @@ namespace Server
}
}
}
}
#endif

View file

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