On my venerable Athlon/900 with a 3dfx Voodoo3 graphics card Java3D openGL takes about 2 seconds to create a new Canvas3D; with DirectX it takes more than twice (5 seconds) that long.
Similar but somewhat slower timings I get on a PIII/933 with a more recent nVidia Quattro card.

Pretty pathetic, I would say.

I did some profiling of the startup phase (OptimizeIt) and found out that the culprit seems to be the call to SimpleUniverse.getPreferredConfiguration(), which essentially calls GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().getBestConfiguration(new GraphicsConfigTemplate3D()).
The config this call returns is passed to the Canvas3D ctor.
I searched the thru the Java3D demos to find out that all demos do this.

Is there a better/faster way to initialize a Canvas3D?
Hans

p.s. forget to mention that I'm running JDK v1.41_01 with Java3D v1.3

Reply via email to