package claudius

  1. Overview
  2. Docs

Module Claudius.StatsSource

Manages stats and other metadata for Claudius

Sourcetype t
Sourceval create : unit -> t

Create an initial stats value

Sourceval fps : t -> int

Get current estimated FPS

Sourceval update : now:float -> tick:int -> t -> t

Calculate the updated stats based on current time/tick

Sourceval render : t -> int -> Screen.t -> Framebuffer.t -> Framebuffer.t

Draw stats on the provided framebuffer

OCaml

Innovation. Community. Security.