From 3583101e586a6fe3306f84d4d34ee764596e0632 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 24 Jul 2001 12:07:18 +0000 Subject: optimized context switching --- demos/MiscDemos/gears.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'demos') 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: "+ -- cgit v1.2.3