Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
gdevelop5:events:draft-optimization [2020/09/07 10:15]
arthuro555 Fix English mistakes
gdevelop5:events:draft-optimization [2020/12/26 13:56] (current)
Line 1: Line 1:
 <note important>This page is a draft for good practices to apply for optimizing GDevelop games.</note> <note important>This page is a draft for good practices to apply for optimizing GDevelop games.</note>
 <note warning>This draft is WIP by @Bouh</note> <note warning>This draft is WIP by @Bouh</note>
 +
 +<note important>
 +Could be merged with 
 +http://wiki.compilgames.net/doku.php/gdevelop5/tutorials/how-to-debug-poor-performance
 +</note>
  
  
Line 45: Line 50:
 Behaviors take performance, especially the //Pathfinding// and //Physic Engine 2.0// behaviors. Remember to disable them when they are not needed. Behaviors take performance, especially the //Pathfinding// and //Physic Engine 2.0// behaviors. Remember to disable them when they are not needed.
  
-Let's take as example the following situation: I want 100 enemies to move to a position close to them every 2 seconds, and to take into account the obstacles (to simulate guardian rounds with random paths).+Let's take as example the following situation: I want 100 enemies to move to a position close to them every 2 seconds, and to take into account the wall obstacles.
  
 This would be an intuitive but wrong way to do it: This would be an intuitive but wrong way to do it:
Line 77: Line 82:
 - Use the profiler in GD5 for see which events are taking the most of the performance to try and optimize it - Use the profiler in GD5 for see which events are taking the most of the performance to try and optimize it
 - Reduce number of conditions as object selection is a heavy process. - Reduce number of conditions as object selection is a heavy process.
 +- The loading of a game can take a while when the resources are too large, 2Go of a video or for a sound file, will slowly the loading.
 +- Think to compress the video and sound files, your image too, this reduce the loading time.
 +- All resources in the project are bundle in the exported games if the resource exist in the Resource tab (Project manager>game settings), think to remove all unused resources.
 +