Differences

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

Link to this comparison view

Both sides previous revision Previous revision
gdevelop:documentation:manual:external_events [2020/05/31 15:26]
rapperdinesh [Basic usage]
gdevelop:documentation:manual:external_events [2020/05/31 15:27] (current)
rapperdinesh [Advanced use: Enable separate compilation]
Line 16: Line 16:
 The events of a scene are automatically compiled into machine code. Even if it is quite fast most of the time, you can make the compilation of the external events separated from the compilation of the events of the scene in which it is included. To enable this, you have to: The events of a scene are automatically compiled into machine code. Even if it is quite fast most of the time, you can make the compilation of the external events separated from the compilation of the events of the scene in which it is included. To enable this, you have to:
  
-  - Include the external events using a Link event which is located at the root of the events of the scene. That is too say, the Link events which is used to include the external events must not have any parent event. +  - Include the external events using a Link event which is located at the root of the events of the scene. That is to say, the Link events which are used to include the external events must not have any parent event. 
-  - Make sure that the external events are included ​from only one scene.+  - Make sure that the external events are included ​in only one scene.
   - Activate the separate compilation in the properties of the external events sheet.   - Activate the separate compilation in the properties of the external events sheet.
  
-When these requirements are meet, GDevelop will compile the external events separately from the scene: Any change in the external events will only trigger the internal compilation of the external events. And similarly, a change in the events of the scene won't require the external events to be recompiled.+When these requirements are met, GDevelop will compile the external events separately from the scene: Any change in the external events will only trigger the internal compilation of the external events. And similarly, a change in the events of the scene won't require the external events to be recompiled.
  
 This can be useful when you have a very large amount of events which require a lot of time to be compiled.\\ This can be useful when you have a very large amount of events which require a lot of time to be compiled.\\
 If you do not need any speed boost, you can still use external events: They provide a nice way of structuring the events of your scene by putting together the events related to a specific task. If you do not need any speed boost, you can still use external events: They provide a nice way of structuring the events of your scene by putting together the events related to a specific task.