Class: Graphics::FPSBalancer
Overview
Class helping to balance FPS on FPS based things
Defined Under Namespace
Modules: Marker
Class Attribute Summary collapse
-
.global ⇒ FPSBalancer
readonly
Get the global balancer.
-
.globally_enabled ⇒ Boolean
Get if the FPS balancing is globally enabled.
-
.last_f3_up ⇒ Time
Get last time F3 was pressed.
Instance Method Summary collapse
-
#disable_skip_for_next_rendering
Force all the scripts to render if we’re about to do something important.
-
#initialize ⇒ FPSBalancer
constructor
Create a new FPSBalancer.
-
#run(&block)
Run code according to FPS Balancing (block will be executed only if it’s ok).
-
#skipping? ⇒ Boolean
Tell if the balancer is skipping frames.
-
#update
Update the metrics of the FPSBalancer.
Constructor Details
#initialize ⇒ FPSBalancer
Create a new FPSBalancer
846 847 |
# File 'docs/0_Dependencies.rb', line 846 def initialize end |
Class Attribute Details
.global ⇒ FPSBalancer (readonly)
Get the global balancer
876 877 878 |
# File 'docs/0_Dependencies.rb', line 876 def global @global end |
.globally_enabled ⇒ Boolean
Get if the FPS balancing is globally enabled
870 871 872 |
# File 'docs/0_Dependencies.rb', line 870 def globally_enabled @globally_enabled end |
.last_f3_up ⇒ Time
Get last time F3 was pressed
873 874 875 |
# File 'docs/0_Dependencies.rb', line 873 def last_f3_up @last_f3_up end |
Instance Method Details
#disable_skip_for_next_rendering
Force all the scripts to render if we’re about to do something important
859 860 |
# File 'docs/0_Dependencies.rb', line 859 def disable_skip_for_next_rendering end |
#run(&block)
Run code according to FPS Balancing (block will be executed only if it’s ok)
853 854 |
# File 'docs/0_Dependencies.rb', line 853 def run(&block) end |
#skipping? ⇒ Boolean
Tell if the balancer is skipping frames
856 857 |
# File 'docs/0_Dependencies.rb', line 856 def skipping? end |
#update
Update the metrics of the FPSBalancer
849 850 |
# File 'docs/0_Dependencies.rb', line 849 def update end |