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
895 896 |
# File 'docs/0_Dependencies.rb', line 895 def initialize end |
Class Attribute Details
.global ⇒ FPSBalancer (readonly)
Get the global balancer
922 923 924 |
# File 'docs/0_Dependencies.rb', line 922 def global @global end |
.globally_enabled ⇒ Boolean
Get if the FPS balancing is globally enabled
916 917 918 |
# File 'docs/0_Dependencies.rb', line 916 def globally_enabled @globally_enabled end |
.last_f3_up ⇒ Time
Get last time F3 was pressed
919 920 921 |
# File 'docs/0_Dependencies.rb', line 919 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
908 909 |
# File 'docs/0_Dependencies.rb', line 908 def disable_skip_for_next_rendering end |
#run(&block)
Run code according to FPS Balancing (block will be executed only if it's ok)
902 903 |
# File 'docs/0_Dependencies.rb', line 902 def run(&block) end |
#skipping? ⇒ Boolean
Tell if the balancer is skipping frames
905 906 |
# File 'docs/0_Dependencies.rb', line 905 def skipping? end |
#update
Update the metrics of the FPSBalancer
898 899 |
# File 'docs/0_Dependencies.rb', line 898 def update end |