2025-04-15 21:49:22 +03:00

1.7 KiB

druid.widget.fps_panel API

at /druid/widget/fps_panel/fps_panel.lua

Functions

Fields

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)