Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  Print  
  Vertex buffers vs immediate mode  (Read 356 times)
0 Members and 1 Guest are viewing this topic.
Offline Vorax

JGO Ninja
***

Posts: 666
Medals: 1


System shutting down in 5..4..3...


« on: 2005-02-06 13:09:07 »

I am wondering if anyone has some metrics or even a general guide as to when the use of vertex buffers outweighs immediate mode drawing for performance.

I have a mix of static and dynamic objects.  The dynamic objects vertices are calculated very often (30-60 time/sec), immediate mode is giving me the best performance (none of them will have huge vertex  counts).  Though this suprised me a bit, I figured the JNI overhead would mean buffers would always win, but they are about 5% slower (not sure why, it may be my video card).  

The static objects are the ones I am concerned about.  With very large objects buffers is winning hands down (say over 300k verts) with gains of 15-20 fps over immediate mode rendering.  But for smaller static objects (< 50k) they seem about the same.  (ARB buffers)

Basically, what I am asking is:  What would be a good number (in vertices) to use as a guidelne for using vertex buffers over immediate mode?

Offline whome

Sr. Member
**

Posts: 267


Carte Noir Java


« Reply #1 on: 2005-02-07 06:51:02 »

Delphi3d.net site has a nice transwer.zip example (delphi source and .exe) to benchmark various vertext arrays and immediate modes.
http://www.delphi3d.net/listfiles.php?category=5
http://www.delphi3d.net/download/transfer.zip
Offline Vorax

JGO Ninja
***

Posts: 666
Medals: 1


System shutting down in 5..4..3...


« Reply #2 on: 2005-02-07 08:20:49 »

Thanks!

Pages: [1]
  Print  
 
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.112 seconds with 21 queries.