New extension: Performance Monitor #1900
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Adds performance info overlay based on Mrdoob's stats.js. It adds additional 4 custom performance panels from threejs (Draw Calls, Triangles, Geometries, Texture) on top of 3 default panels (FPS, MS, MB) that Stats.js offers. So this extension allows to see total of 7 performance metrics. (can be increased if Gdevelop migrates to newer version of the threejs)
How to use the extension
Start Performance monitor action:
Shows performance overlay top of the game with options to see all the panels or classic "click on it to cycle" modes and panel size scale value.
Stop Performance Monitor action:
Stops and removes the performance overlay.
Checklist
What tier of review do you aim for your extension?
Community (Unreviewed)
Example file
Performance Monitor.zip
Extension file
PerformanceMonitor.zip
Extension by @Eldarduil
You can update the extension on this "Pull Request" by commenting the update command: in the comment field, type
!update, then drag and drop a zip file with your extension file in the commenting field, like how you initially submitted the extension. It should look like this:It can take a few seconds for the file to fully upload and show as the above. Once it is like shown above, click "Comment" and let the bot do the rest!