Bug 205 - FPSAnimator flag for fixed-rate scheduling
Summary: FPSAnimator flag for fixed-rate scheduling
Status: VERIFIED FIXED
Alias: None
Product: Jogl
Classification: JogAmp
Component: core (show other bugs)
Version: 1
Hardware: All all
: P3 normal
Assignee: Sven Gothel
URL:
Depends on:
Blocks:
 
Reported: 2006-02-19 07:47 CET by Sven Gothel
Modified: 2015-09-27 03:15 CEST (History)
0 users

See Also:
Type: FEATURE
SCM Refs:
Workaround: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Gothel 2010-03-24 07:48:29 CET


---- Reported by andrewdavison62 2006-02-19 19:47:12 ----

The JOGL utility class FPSAnimator uses java.util.Timer.schedule() to trigger 
redraws of drawables. schedule() suffers from drift so that it's fairly useless 
for triggering accurate updates for frame rates above 50 FPS.

Please add a flag to FPSAnimator's constructor to allow the optional use of 
java.util.Timer.scheduleAtFixedRate(), which performs better at higher FPSs.

The code changes would occur in FPSAnimator's start() method.



---- Additional Comments From kbr 2006-02-21 02:04:48 ----

Added new constructors taking fixed-rate scheduling flag. Defaults to false.
Seems to help FPSAnimator reach higher framerate targets. Unclear whether the
flag will cause excessive CPU consumption.




--- Bug imported by sgothel@jausoft.com 2010-03-24 07:48 EDT  ---

This bug was previously known as _bug_ 205 at https://jogl.dev.java.net/bugs/show_bug.cgi?id=205