diff --git a/buildnumber.txt b/buildnumber.txt index 4cbaed0a..adffc81c 100644 --- a/buildnumber.txt +++ b/buildnumber.txt @@ -1 +1 @@ -2651 +2652 \ No newline at end of file diff --git a/source/funkin/system/framerate/FlixelInfo.hx b/source/funkin/system/framerate/FlixelInfo.hx new file mode 100644 index 00000000..fc9ebd88 --- /dev/null +++ b/source/funkin/system/framerate/FlixelInfo.hx @@ -0,0 +1,19 @@ +package funkin.system.framerate; + +import funkin.utils.MemoryUtil; + +class FlixelInfo extends FramerateCategory { + public function new() { + super("Flixel Info"); + } + + public override function __enterFrame(t:Int) { + if (alpha <= 0.05) return; + _text = 'State: ${Type.getClassName(Type.getClass(FlxG.state))}'; + _text += '\nObject Count: ${FlxG.state.members.length}'; + _text += '\nCamera Count: ${FlxG.cameras.list.length}'; + + this.text.text = _text; + super.__enterFrame(t); + } +} \ No newline at end of file