mirror of
https://github.com/Insality/druid
synced 2025-06-27 18:37:45 +02:00
1.7 KiB
1.7 KiB
druid.widget.fps_panel API
at /druid/widget/fps_panel/fps_panel.lua
Functions
Fields
- root
- delta_time
- collect_time
- collect_time_counter
- graph_samples
- fps_samples
- mini_graph
- text_min_fps
- text_fps
- timer_id
- previous_time
init
fps_panel:init()
on_remove
fps_panel:on_remove()
update
fps_panel:update([dt])
- Parameters:
[dt]
(any):
push_fps_value
fps_panel:push_fps_value()
Fields
- root (node)
- delta_time (number): in seconds
- collect_time (integer): in seconds
- collect_time_counter (integer)
- graph_samples (number)
- fps_samples (table): Store frame time in seconds last collect_time seconds
- mini_graph (druid.widget.mini_graph): Widget to display a several lines with different height in a row
- text_min_fps (druid.text): Basic Druid text component. Text components by default have the text size adjusting.
- text_fps (druid.text): Basic Druid text component. Text components by default have the text size adjusting.
- timer_id (unknown)
- previous_time (unknown)