aboutsummaryrefslogtreecommitdiffstats
path: root/src/nativewindow/classes
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-07-30 16:21:17 +0200
committerSven Gothel <[email protected]>2014-07-30 16:21:17 +0200
commitadf8e6e40aa9513036864489642cfef252804d08 (patch)
tree8e63cd4789c092f642302448b040ce9c040145d8 /src/nativewindow/classes
parent830feb65f4c3d0c633556fd39787328834ee51d2 (diff)
Bug 1036: NVidia's Windows Driver Threaded optimization: Alternative affinity mask setting on all threads of process - Didn't work (disabled)
Diffstat (limited to 'src/nativewindow/classes')
-rw-r--r--src/nativewindow/classes/jogamp/nativewindow/windows/GDIUtil.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nativewindow/classes/jogamp/nativewindow/windows/GDIUtil.java b/src/nativewindow/classes/jogamp/nativewindow/windows/GDIUtil.java
index 31e85dcee..c409b6a39 100644
--- a/src/nativewindow/classes/jogamp/nativewindow/windows/GDIUtil.java
+++ b/src/nativewindow/classes/jogamp/nativewindow/windows/GDIUtil.java
@@ -128,6 +128,10 @@ public class GDIUtil implements ToolkitProperties {
return IsChild0(win);
}
+ public static void SetProcessThreadsAffinityMask(final long affinityMask, final boolean verbose) {
+ SetProcessThreadsAffinityMask0(affinityMask, verbose);
+ }
+
private static final void dumpStack() { Thread.dumpStack(); } // Callback for JNI
/** Creates WNDCLASSEX instance */
@@ -142,6 +146,8 @@ public class GDIUtil implements ToolkitProperties {
private static native boolean IsChild0(long win);
private static native boolean IsUndecorated0(long win);
+ private static native void SetProcessThreadsAffinityMask0(long affinityMask, boolean verbose);
+
private static native long CreateDummyWindow0(long hInstance, String className, long dispThreadCtx, String windowName, int x, int y, int width, int height);
private static native boolean DestroyWindow0(long dispThreadCtx, long win);
}