Skip to content

Instantly share code, notes, and snippets.

View simpuid's full-sized avatar
🙂
Enjoying

Utkarsh simpuid

🙂
Enjoying
View GitHub Profile
@simpuid
simpuid / about.md
Last active September 1, 2020 05:25

Custom Performance Monitors and Debugger Plugins in Godot

The project is divided into 2 section:

  • Custom Performance Monitors
  • Debugger Plugins

Custom Performance Monitors

PR Link [Merged]

@simpuid
simpuid / about.md
Last active March 28, 2020 16:43
Mock-up usage of `Custom Profiler` API to monitor Device's magnetometer in Godot.

This mock-up shows the usage of Custom Profiler API to create custom profilers in Godot.

  • All scripts are inside res://addons/profiler/
  • plugin.gd is mentioned inside plugin.cfg file.
  • It sets the GUI scene (res://addons/profiler/gui_scene.tscn) used by the profiler.
  • It also adds a custom Node named CustomProfiler which processes and sends data from Game to Editor. This node should be added to scene tree via autoload.
  • profiler.gd is the script of CustomProfiler
  • It registers tick, add and toggle functions to EngineDebugger under id profiler
  • It registers capture function as capture for rotation (any packet with name matched to rotation:* will be relayed to the capture function)
  • Data is added via profiler_add_frame_data in _process