Package net.runelite.client.plugins.fps
Class FpsPlugin
- java.lang.Object
-
- net.runelite.client.plugins.Plugin
-
- net.runelite.client.plugins.fps.FpsPlugin
-
- All Implemented Interfaces:
com.google.inject.Module
@PluginDescriptor(name="FPS Control", description="Show current FPS and/or set an FPS limit", tags={"frames","framerate","limit","overlay"}, enabledByDefault=false) public class FpsPlugin extends Plugin
FPS Control has two primary areas, this plugin class just keeps those areas up to date and handles setup / teardown.Overlay paints the current FPS, the color depends on whether or not FPS is being enforced. The overlay is lightweight and is merely and indicator.
Draw Listener, sleeps a calculated amount after each canvas paint operation. This is the heart of the plugin, the amount of sleep taken is regularly adjusted to account varying game and system load, it usually finds the sweet spot in about two seconds.
-
-
Constructor Summary
Constructors Constructor Description FpsPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onConfigChanged(ConfigChanged event)
void
onFocusChanged(FocusChanged event)
protected void
shutDown()
protected void
startUp()
-
Methods inherited from class net.runelite.client.plugins.Plugin
configure, equals, getInjector, getName, hashCode, resetConfiguration
-
-
-
-
Method Detail
-
onConfigChanged
@Subscribe public void onConfigChanged(ConfigChanged event)
-
onFocusChanged
@Subscribe public void onFocusChanged(FocusChanged event)
-
startUp
protected void startUp() throws Exception
-
-