Keep track of whether or not anything was painted each frame and avoid the
extra effort of copying the back buffer to the screen if nothing actually changed. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2322 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: FrameParticipant.java,v 1.2 2002/06/18 22:25:33 mdb Exp $
|
||||
// $Id: FrameParticipant.java,v 1.3 2003/03/25 19:06:54 mdb Exp $
|
||||
|
||||
package com.threerings.media;
|
||||
|
||||
@@ -20,6 +20,13 @@ public interface FrameParticipant
|
||||
*/
|
||||
public void tick (long tickStamp);
|
||||
|
||||
/**
|
||||
* Called immediately prior to {@link #getComponent} and then {@link
|
||||
* Component#paint} on said component, to determine whether or not
|
||||
* this frame participant needs to be painted.
|
||||
*/
|
||||
public boolean needsPaint ();
|
||||
|
||||
/**
|
||||
* If a frame participant wishes also to be actively rendered every
|
||||
* frame rather than use passive rendering (which for Swing, at least,
|
||||
|
||||
Reference in New Issue
Block a user