+1 vote

I would like to access the Debugging Monitor Values like Vertices Drawn and Draw Calls, from GDScript. This way, it's possible to print them in labels, so that I can see the values on the game screen.

This is useful so that there is no need to switch from game screen to editor screen, or, if the game is in fullscreen mode.

The only value from the monitor I know is available is FPS, from the GetFramesPerSecond function.

in Engine by (126 points)

1 Answer

+2 votes
Best answer

Found out:

https://docs.godotengine.org/en/3.1/classes/class_performance.html

This class provides access to a number of different monitors related to performance, such as memory usage, draw calls, and FPS. These are the same as the values displayed in the Monitor tab in the editor’s Debugger panel. By using the get_monitor method of this class, you can access this data from your code. Note that a few of these monitors are only available in debug mode and will always return 0 when used in a release build.

by (126 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.