diff options
author | Kenneth Russel <[email protected]> | 2001-11-11 23:00:20 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2001-11-11 23:00:20 +0000 |
commit | abfde11979da835b2d69d16335d9274b14d7be9f (patch) | |
tree | b5b23cf3649c53fe571b3180d51de7ecaff8235d /demos | |
parent | 1498b55fb046ca575b0ef1a0b50c09c84acd1f8f (diff) |
More documentation
Diffstat (limited to 'demos')
-rw-r--r-- | demos/NVidia/VertexArrayRange.java | 28 |
1 files changed, 21 insertions, 7 deletions
diff --git a/demos/NVidia/VertexArrayRange.java b/demos/NVidia/VertexArrayRange.java index 52c6591..4f49380 100644 --- a/demos/NVidia/VertexArrayRange.java +++ b/demos/NVidia/VertexArrayRange.java @@ -6,22 +6,36 @@ import gl4java.*; import gl4java.awt.*; import gl4java.drawable.*; -/** <P> 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 href = +/** <P> 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 <a href = "http://developer.nvidia.com/view.asp?IO=Using_GL_NV_fence">here</a>. </P> <P> This demonstration requires the following: <ul> - <li> A JDK 1.4 implementation - <li> an NVidia-based card + <li> A JDK 1.4 implementation (Beta 3 or later) + <li> an NVidia GeForce-based card <li> a recent set of drivers </ul> </P> -*/ + + <P> 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. </P> + + <P> 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. </P> */ public class VertexArrayRange { private boolean[] b = new boolean[256]; |