aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/jogamp/opengl/windows
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-08-04 14:10:47 +0200
committerSven Gothel <[email protected]>2014-08-04 14:10:47 +0200
commit6cd0a28ff2cb3f1e249b524622abf411536be716 (patch)
treea95c97915a16a15857079d5711adf2ea1f16a22a /src/jogl/classes/jogamp/opengl/windows
parent60f397da5fd27e2140a0c1b3a102bba0e67c9f19 (diff)
Bug 1036: Renamed property to switch off NVidia Windows workaround 'jogl.windows.cpu_affinity_mode' (dropping '.debug')
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/windows')
-rw-r--r--src/jogl/classes/jogamp/opengl/windows/wgl/WindowsWGLDrawableFactory.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/jogl/classes/jogamp/opengl/windows/wgl/WindowsWGLDrawableFactory.java b/src/jogl/classes/jogamp/opengl/windows/wgl/WindowsWGLDrawableFactory.java
index 8dc77d985..23974c3ce 100644
--- a/src/jogl/classes/jogamp/opengl/windows/wgl/WindowsWGLDrawableFactory.java
+++ b/src/jogl/classes/jogamp/opengl/windows/wgl/WindowsWGLDrawableFactory.java
@@ -78,6 +78,7 @@ import jogamp.opengl.GLGraphicsConfigurationUtil;
import jogamp.opengl.SharedResourceRunner;
import com.jogamp.common.nio.PointerBuffer;
+import com.jogamp.common.util.PropertyAccess;
import com.jogamp.common.util.ReflectionUtil;
import com.jogamp.nativewindow.windows.WindowsGraphicsDevice;
import com.jogamp.opengl.GLExtensions;
@@ -111,7 +112,7 @@ public class WindowsWGLDrawableFactory extends GLDrawableFactoryImpl {
* or because the driver's worker thread is bound to the same CPU.
* </p>
* <p>
- * Property integer value <code>jogl.debug.windows.cpu_affinity_mode</code>:
+ * Property integer value <code>jogl.windows.cpu_affinity_mode</code>:
* <ul>
* <li>0 - none (no affinity, may cause driver crash with 'Threaded optimization' = ['auto', 'on'])</li>
* <li>1 - process affinity (default, workaround for driver crash for 'Threaded optimization' = 'auto', still crashes if set to 'on')</li>
@@ -122,7 +123,12 @@ public class WindowsWGLDrawableFactory extends GLDrawableFactoryImpl {
* (don't ask why ..)
* </p>
*/
- private static final int CPU_AFFINITY_MODE = Debug.getIntProperty("jogl.debug.windows.cpu_affinity_mode", true, 1);
+ private static final int CPU_AFFINITY_MODE;
+
+ static {
+ Debug.initSingleton();
+ CPU_AFFINITY_MODE = PropertyAccess.getIntProperty("jogl.windows.cpu_affinity_mode", true, 1);
+ }
private static DesktopGLDynamicLookupHelper windowsWGLDynamicLookupHelper = null;