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  
  Average FPS - Xith Demo  (Read 834 times)
0 Members and 1 Guest are viewing this topic.
Offline William Denniss

JGO Kernel
*****

Posts: 1837
Medals: 5


Fire at will


« on: 2003-08-05 00:04:26 »

Has anyone else run the Xith3D 9000 cube demo?  I would like to get a bit of an idea what frame rates people are getting.

I haven't run it yet on my PC which has a semi-decent graphics card, but when I tried it on my laptop with a SiS650 chipset 32MB (shared) Graphics card, I only got a mear 16f/s.

9000 textured cubes = about 108,000 triangles by my reconing (9000 cubes x 6 sides x 2 triangles).

Is 16f/s normal for a low-end card for that many triangles would you think?

This is runnly Xith3D on Linux JOGL.

Incidentally, I managed to solve my previous display problems by downloading the latest SiS linux driver, and compiling/installing Mesa 5.

Note that the demo won't run unless you fix and recompile the CubeTest.java
1  
2  
           BufferedImage b = DirectBufferedImage.loadDirectImage(
                "stone.jpg");


Cheers,

Will.

Offline DavidYazel

Sr. Member
**

Posts: 265


Java games rock!


« Reply #1 on: 2003-08-05 08:38:15 »

Unless you modified the demo and rebuilt, it is a 900 cube demo, not a 9000 cube demo.  The demo prints out the actual number of triangles per frame at the end and calculates the fps.

For a test of sheer triangle this one is not very interesting because it is rendering a bunch of small shapes.  You could increase the complexity of those cubes by quite a bit (and thus increase the triangle count) before you would become fill bound.  I should make a sphere test version of the cube test to demonstrate that.

David Yazel
Xith3D Project Founder
http://xith3d.dev.java.net

It may look complicated, but in the end it is just a bunch of triangles
Offline William Denniss

JGO Kernel
*****

Posts: 1837
Medals: 5


Fire at will


« Reply #2 on: 2003-08-05 17:19:20 »

900 sorry yes, not 9000.

If you could do the sphere demo that would be good.  I think I will try the 2000 frame test with some more complex objects when I get home from work.

Here are my results from the 2k frame test using: SiS650 Integrated Grpahics, 32MB DDR Video Ram (shared), Red Hat Linux 8.0, P4 1.8GHz, 256MB DDR SDRAM on a laptop.  Ie. a fairly low end system graphics wise, and the 256MB ram isn't helping matters in linux...

1  
2  
3  
4  
5  
6  
7  
Cube count   f/s    ms/f
102               28            69  
1002             11           177  
2002             6             303
12                28            57

(The extra 2 cubes are the big ones).  


3000+ cubes fails with:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 3000
        at com.xith3d.render.RenderBin.addAtom(RenderBin.java:38)
        at com.xith3d.render.Renderer.addAtom(Renderer.java:108)
        at com.xith3d.scenegraph.View.renderNode(View.java:551)
        at com.xith3d.scenegraph.View.renderNode(View.java:524)
        at com.xith3d.scenegraph.View.renderNode(View.java:524)
        at com.xith3d.scenegraph.View.renderNode(View.java:524)
        at com.xith3d.scenegraph.View.getRenderFrame(View.java:495)
        at com.xith3d.scenegraph.View.renderOnce(View.java:474)
        at com.xith3d.scenegraph.View.renderOnce(View.java:457)
        at com.xith3d.test.CubeTest.<init>(CubeTest.java:150)
        at com.xith3d.test.CubeTest.main(CubeTest.java:540)


Is this a limitation of Xith3D, JOGL, OpenGL or my graphics card?

Cheers,

Will.

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.134 seconds with 21 queries.