Skip to content

Commit 51d99d0

Browse files
committed
Efficacy sampler: Enabled gcServer setting; this seems to result in a significant performance improvement; it may also prevent a sporadic ExecutionEngine exception.
1 parent 0a01cbe commit 51d99d0

File tree

8 files changed

+37
-10
lines changed

8 files changed

+37
-10
lines changed

Diff for: src/Box2dTestHarness/Properties/Settings.Designer.cs

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: src/EfficacySampler/App.config

+7
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,11 @@
33
<startup>
44
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/>
55
</startup>
6+
<runtime>
7+
<!-- Enable server GC as an attempt to prevent the following exception: -->
8+
<!-- System.ExecutionEngineException occurred HResult=0x80131506 -->
9+
<!-- See: http://stackoverflow.com/questions/7531860/why-does-concurrent-gc-sometimes-cause-executionengineexception-per-msdn -->
10+
<!-- The exception is sporadic, sometime not occuring for days, sometime will happen within ninutes of the efficay sample process starting. -->
11+
<gcServer enabled="true"/>
12+
</runtime>
613
</configuration>

Diff for: src/SharpNeatConsole/SharpNeatConsole.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<Prefer32Bit>false</Prefer32Bit>
2828
</PropertyGroup>
2929
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
30-
<PlatformTarget>x86</PlatformTarget>
30+
<PlatformTarget>AnyCPU</PlatformTarget>
3131
<DebugType>pdbonly</DebugType>
3232
<Optimize>true</Optimize>
3333
<OutputPath>bin\Release\</OutputPath>

Diff for: src/SharpNeatConsole/app.config

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
<?xml version="1.0"?>
22
<configuration>
3-
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/></startup></configuration>
3+
<startup>
4+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/>
5+
</startup>
6+
<runtime>
7+
<!-- SharpNEAT has been obervsed to run signifiantly faster with the server GC -->
8+
<!-- The SharpNEAT workload is also more akin to a server workload, so this is likely the better choice overall. -->
9+
<gcServer enabled="true"/>
10+
</runtime>
11+
</configuration>

Diff for: src/SharpNeatGUI/App.config

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
<?xml version="1.0"?>
22
<configuration>
3+
<startup>
4+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/>
5+
</startup>
36
<runtime>
7+
<!-- SharpNEAT has been obervsed to run signifiantly faster with the server GC -->
8+
<!-- The SharpNEAT workload is also more akin to a server workload, so this is likely the better choice overall. -->
49
<gcServer enabled="true"/>
510
</runtime>
6-
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/></startup></configuration>
11+
</configuration>

Diff for: src/SharpNeatGUI/Properties/Resources.Designer.cs

+11-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: src/SharpNeatGUI/Properties/Settings.Designer.cs

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: src/SharpNeatLib/Properties/Settings.Designer.cs

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)