From adf8e6e40aa9513036864489642cfef252804d08 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Wed, 30 Jul 2014 16:21:17 +0200 Subject: Bug 1036: NVidia's Windows Driver Threaded optimization: Alternative affinity mask setting on all threads of process - Didn't work (disabled) --- src/nativewindow/classes/jogamp/nativewindow/windows/GDIUtil.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/nativewindow/classes/jogamp') 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); } -- cgit v1.2.3