Aviatrix3D
2.1.0

org.j3d.renderer.aviatrix3d.util
Interface SystemPerformanceListener


public interface SystemPerformanceListener

A listener for monitoring system performance of the application.

A user of this interface can use the information to control its own behaviour based on how the current user's system is performing. For example, if the frame rate is bogging down, the listener implementation could drop to a lighter weight shader implementation of lighting.

The listener will be called during the scene update cycle, so you will be safe to make AV3D calls to register for bounds updates etc when this is called.

Version:
$Revision: 1.1 $
Author:
Justin Couch

Method Summary
 boolean downgradePerformance()
          Notification of a performance downgrade is required in the system.
 boolean upgradePerformance()
          Notification of a performance upgrade is required by the system.
 

Method Detail

downgradePerformance

boolean downgradePerformance()
Notification of a performance downgrade is required in the system. This listener should attempt to reduce it's performance demands now if it is able to and return true. If not able to reduce it the return false.

Returns:
True if the performance demands were decreased

upgradePerformance

boolean upgradePerformance()
Notification of a performance upgrade is required by the system. This listener is free to increase performance demands of the system. If it does upgrade, return true, otherwise return false.

Returns:
True if the performance demands were increased

Aviatrix3D
2.1.0

Latest Info from http://aviatrix3d.j3d.org/
Copyright © 2003 - 2009 j3d.org