Use an array to mark dirty tiles. Added double-buffering to the

SceneViewPanel.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@194 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Walter Korman
2001-08-08 03:19:39 +00:00
parent 6b423cd53a
commit 49764d7b79
4 changed files with 90 additions and 44 deletions
@@ -1,5 +1,5 @@
//
// $Id: AnimationManager.java,v 1.9 2001/08/08 00:10:50 shaper Exp $
// $Id: AnimationManager.java,v 1.10 2001/08/08 03:19:39 shaper Exp $
package com.threerings.miso.sprite;
@@ -113,6 +113,7 @@ public class AnimationManager implements Interval, PerformanceObserver
ArrayList rects = _spritemgr.getDirtyRects();
if (rects.size() > 0) {
// pass the dirty-rects on to the scene view
_view.invalidateRects(rects);
@@ -160,7 +161,7 @@ public class AnimationManager implements Interval, PerformanceObserver
protected Runnable _ticker;
/** The desired number of refresh operations per second. */
protected static final int FRAME_RATE = 40;
protected static final int FRAME_RATE = 70;
/** The milliseconds to sleep to obtain desired frame rate. */
protected static final long REFRESH_INTERVAL = 1000 / FRAME_RATE;