net.java.games.jogl.impl
Class SingleThreadedWorkaround
java.lang.Object
net.java.games.jogl.impl.SingleThreadedWorkaround
public class SingleThreadedWorkaround
extends java.lang.Object
Encapsulates the workaround of running all display operations on
the AWT event queue thread for the purposes of working around
problems seen primarily on ATI cards when rendering into a surface
that is simultaneously being resized by the event queue thread.
As of JOGL 1.1 b10, this property defaults to true. Problems have
been seen on Windows, Linux and Mac OS X platforms that are solved
by switching all OpenGL work to a single thread, which this
workaround provides. The forthcoming JSR-231 work will rethink how
such a mechanism is implemented, but the core result of needing to
perform all OpenGL work on a single thread for best compatibility
will remain.
disableWorkaround
public static void disableWorkaround()
Public method for users to disable the single-threaded
workaround in application code. Should perhaps eventually
promote this method to the public API.
doWorkaround
public static boolean doWorkaround()
shouldDoWorkaround
public static void shouldDoWorkaround()