An open API service indexing awesome lists of open source software.

https://github.com/atomicsponge/godot-plugin-fps-label

A simple FPS label for Godot.
https://github.com/atomicsponge/godot-plugin-fps-label

fps godot godot-plugin plugin

Last synced: 10 months ago
JSON representation

A simple FPS label for Godot.

Awesome Lists containing this project

README

          

# Godot FPS Label Plugin
A simple plugin that adds a FPS counter.

## How it Works
Add the plugin to your project then create a keymap called `fps`. Assign the key you want to display and hide the FPS counter with. Then add the FPS counter node into your project. It inherits from a `Label` type so you will want to add it to a CanvasLayer for it to stay in position. Then anchor it into the corner you want it kept in.

The FPS label will begin hidden. Press the assigned key to show. Press the key again to display delta time.

## API Reference
- `show_fps() -> void`: Show the FPS counter.

- `show_powermode() -> void`: Show the FPS counter and delta time.

- `hide_fps() -> void`: Hide the FPS counter.