New extension: Performance Monitor
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
- [x] I've followed all of the best practices.
- [x] I confirm that this extension can be integrated to this GitHub repository, distributed and MIT licensed.
- [x] I am aware that the extension may be updated by anyone, and do not need my explicit consent to do so.
What tier of review do you aim for your extension?
Community (Unreviewed)
Example file
Extension file
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:
!update [MyExtension.zip](https://github.com/GDevelopApp/GDevelop-extensions/files/12709661/MyExtension.zip)
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!
!update PerformanceMonitor.zip
Extension updated with errors:
❌ 1 Error found in extension 'PerformanceMonitor':
⟶ ❌ [JavaScript disallowed properties]: JavaScript usage of the extension 'PerformanceMonitor' must be checked by the reviewer:
{
allowedProperties: [
'getVariables',
'getLayer',
'getGame',
'getBackgroundColor',
'getName',
'createObject',
'createObjectsFrom',
'setBackgroundColor',
'sceneJustResumed',
'requestChange',
'hasLayer',
'enableDebugDraw'
],
disallowedProperty: '_PerformanceMonitor',
objectName: 'runtimeScene'
}
❌ 1 Error found in extensions - please fix it before generating the registry.
No fatal error found the extension can be updated but still need fixes.