aboutsummaryrefslogtreecommitdiffstats
path: root/demos/MiscDemos/gears.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2001-07-24 12:07:18 +0000
committerSven Gothel <[email protected]>2001-07-24 12:07:18 +0000
commit3583101e586a6fe3306f84d4d34ee764596e0632 (patch)
treed5c228654f882fa0f0c6214e6d4866ce44181b89 /demos/MiscDemos/gears.java
parentc9eae90cb823d918ecc4bf5afa73ce3a0859d578 (diff)
optimized context switchingrel-2-8-0-0-prerelease-3
Diffstat (limited to 'demos/MiscDemos/gears.java')
-rw-r--r--demos/MiscDemos/gears.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/demos/MiscDemos/gears.java b/demos/MiscDemos/gears.java
index b80e3e1..dd4cb13 100644
--- a/demos/MiscDemos/gears.java
+++ b/demos/MiscDemos/gears.java
@@ -30,8 +30,6 @@ public class gears extends SimpleGLAnimApplet1
public void init(boolean showGL)
{
super.init();
- GLContext.gljNativeDebug = false;
- GLContext.gljClassDebug = false;
Dimension d = getSize();
@@ -57,6 +55,7 @@ public class gears extends SimpleGLAnimApplet1
GLContext.gljNativeDebug = true;
GLContext.gljClassDebug = true;
+ GLContext.gljThreadDebug = true;
while(args.length>i)
{
@@ -93,7 +92,7 @@ public class gears extends SimpleGLAnimApplet1
if(perftest)
GLContext.gljClassDebug=true;
- GLContext.loadNativeLibraries(gljLib, glLib, gluLib);
+ GLContext.doLoadNativeLibraries(gljLib, glLib, gluLib);
if(perftest)
GLContext.gljClassDebug=false;
@@ -121,6 +120,8 @@ public class gears extends SimpleGLAnimApplet1
{
applet.canvas.setUseFpsSleep(false);
applet.canvas.setUseRepaint(false);
+ applet.canvas.setUseYield(false);
+
System.out.println("useFpsSleep: "+
applet.canvas.getUseFpsSleep());
System.out.println("useRepaint: "+