jogl
  1. jogl
  2. JOGL-205

FPSAnimator flag for fixed-rate scheduling

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: current
    • Fix Version/s: milestone 1
    • Component/s: jogl
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      205

      Description

      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.

        Activity

        Hide
        kbr added a comment -

        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.

        Show
        kbr added a comment - 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.

          People

          • Assignee:
            jogl-issues
            Reporter:
            andrewdavison62
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: