Differences
This shows you the differences between two versions of the page.
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> | <note important> | ||
<note warning> | <note warning> | ||
+ | |||
+ | <note important> | ||
+ | Could be merged with | ||
+ | http:// | ||
+ | </ | ||
Line 45: | Line 50: | ||
Behaviors take performance, | Behaviors take performance, | ||
- | 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 | + | 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> | ||
+ | |||