Lee,

I ran this on my machine and I get the same results for both
runItSlow set to true or false (i.e ~83fps).

This is on WinNT 4.0, ATI Rage Pro 8MB, 400Mhz PII, JDK 1.3,
Java3D 1.2 FCS.

I tried with JDK 1.2.2 and get the same results.

Are you using WinNT ? If so what video driver version, video depth
etc are you using ?

Rob

J. Lee Dixon wrote:

> I believe I have finally nailed down what I think is slowing down the
> performance for models created from 3DS (and other) files.  After debugging
> the Load3DS code, I found that by just removing the addition of
> PolygonAttributes to the Appearance objects that the rendering speed went
> dramatically up.
>
> In the attached files, I have isolated the problem.  The program shows an
> array of rotating 2D squares.  The frame rate is computed and printed to
> System.out.  A boolean variable controls the calling of this line:
>   if(runItSlow)
>     appearance.setPolygonAttributes(new PolygonAttributes());
>
> If the variable is set to false, my machine settles at about 105fps.
> Setting it to true makes the program top out at about 34fps.  Can others
> (Java 3D team) please try out my example and tell me what I'm doing wrong?
>
> Machine configuration: JDK 1.2.2, Java3d 1.2 FCS, ATI Rage Pro 8meg, Pent
> III  600, 128meg
>
> Attached is the .java and a Kawa project file.
>
> J. Lee Dixon
> Software Engineer
> SAIC - Celebration, FL
> [EMAIL PROTECTED]
>
>                                                   
>-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                       Name: TestBed.java
>    TestBed.java       Type: Java File (Forte for Java) 
>(application/x-unknown-content-type-javafile)
>                   Encoding: quoted-printable
>
>                      Name: testbed.kpx
>    testbed.kpx       Type: unspecified type (application/octet-stream)
>                  Encoding: quoted-printable

--


Rob Nugent
Development Manager
PeerLogic
[EMAIL PROTECTED]
http://www.peerlogic.com
Tel: +44 (0) 1489 585503
Fax: +44 (0) 1489 881363

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to