On this page
britzl/defold-metrics/metrics.fps
Calculate and display performance metrics in Defold games
- GitHub: britzl/defold-metrics — pinned to
2fe3aed- Pick a release from britzl/defold-metrics releases and add its Source code (zip) URL (or a packaged
.zipasset, if the library ships one) togame.projectunder[project]dependencies, then Fetch Libraries in the Defold editor. - Run
bunx @defold-typescript/cli resolveto materialize its types. - Import it under a namespace alias of your choice:
import * as fps from "metrics.fps"
- Pick a release from britzl/defold-metrics releases and add its Source code (zip) URL (or a packaged
Functions
create(samples?: number, format?: string, position?: string, color?: string): Metrics
Parameters
samples?:numberformat?:stringposition?:stringcolor?:string
Returns
Metrics