> From: "Casteel, Don" <[EMAIL PROTECTED]>
>
> I can't seem to find a method anywhere for getting the current frame rate.
> Any Clues?

There are some methods on the View:

        getFrameNumber();
        getLastFrameDuration()
        getFrameStartTimes()

You can use these like this:

        long[] startTimes = new long[10];
        view.getFrameStartTimes(startTimes);
        long lastFrameDuration = view.getLastFrameDuration();
        long numFrames = view.getFrameNumber();

        if (numFrames > 10) numFrames = 10;
        double elapsed = (now - startTimes[numFrames-1]) / 1000.0;
        System.out.println("Last " + numFrames + " frames rendered in " +
                elapsed + " seconds, " +
                (numFrames / elapsed) + " frames/sec");
        System.out.println("Last frame rendered in " +
                (lastFrameDuration / 1000.0) + " seconds ");


Doug Gehringer
Sun Microsystems

===========================================================================
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