From abfde11979da835b2d69d16335d9274b14d7be9f Mon Sep 17 00:00:00 2001
From: Kenneth Russel A port of NVidia's Vertex Array Range demonstration to OpenGL
- for Java and the Java programming language. The current web site
- for the demo (which does not appear to contain the original C++
- source code for this demo) is A port of NVidia's [tm] Vertex Array Range demonstration to
+ OpenGL[tm] for Java[tm] and the Java programming language. The
+ current web site for the demo (which does not appear to contain
+ the original C++ source code for this demo) is here. This demonstration requires the following:
-
This demonstration illustrates the effective use of the + java.nio direct buffer classes in JDK 1.4 to access memory outside + of the Java garbage-collected heap, in particular that returned + from the NVidia-specific routine wglAllocateMemoryNV. This memory + region is used in conjunction with glVertexArrayRangeNV.
+ +On a 750 MHz PIII with an SDRAM memory bus and a GeForce 256 + running the Java HotSpot[tm] Client VM and OpenGL for Java 2.8, + this demonstration attains 90% of the speed of the compiled C++ + code, with a frame rate of 27 FPS, compared to 30 FPS for the C++ + version. On higher-end hardware (a dual 667 MHz PIII with RDRAM + and a GeForce 2) the demo currently attains between 65% and 75% of + C++ speed with the HotSpot Client and Server compilers, + respectively.
*/ public class VertexArrayRange { private boolean[] b = new boolean[256]; -- cgit v1.2.3