Differences

This shows you the differences between two versions of the page.

Link to this comparison view

gdevelop:documentation:manual:editors:scene_editor:edit_preview_profiler [2015/05/18 12:28] (current)
Line 1: Line 1:
 +====== The Profiler ======
 +
 +{{ gdevelop:​documentation:​manual:​editors:​scene_editor:​newitem80.png?​nolink |}}
 +
 +===== Basic usage =====
 +
 +The **Profiler** helps you improve the performance of your game. Open it by clicking on **Profiler** in the ribbon of a scene in [[edit_scene_preview|Preview Mode]]. To activate //​profiling//,​ tick the box in the top-left corner: this will reload the scene. Now launch the game as usual. The **Profiler** will display graphs about the event execution speed, scene rendering and number of objects. You can change the refresh rate and add/hide curves by right-clicking on the graphics.
 +
 +===== Measuring events efficiency =====
 +
 +In order to view an event execution speed, open the [[gdevelop:​documentation:​manual:​edit_event|Event Editor]] and click on ''​**Profiling**''​ in the ribbon:
 +
 +{{ gdevelop:​documentation:​manual:​editors:​scene_editor:​newitem79.png?​nolink |}}
 +
 +The first number represents the time taken by the event in milliseconds. The second is the same value as a percentage of the total execution time. The higher this percentage, the brighter red the rectangle will be: use this feature to identify bottle-necks.
 +
 +Note that if an event has sub-events, their execution time is included in the total event execution time.
 +----