The EnableApplicationLoop function allows to create real time applications with an infinite loop.
Usually you have to call it if you use Direct3D.
Be careful with this mode because your application will use all the memory resource of your system and will slow other applications.
When the application loop is enabled, the Application.Loop function is always called.
Syntax
Global.EnableApplicationLoop(
Integer enabled = true)
Integer enabled = true)
Parameters
| enabled true, false | Enable or Disable. | Optional |
|---|
Return value
The EnableApplicationLoop function has no return values.
Example
function Application.Constructor()
{
// Enable the infinite loop
EnableApplicationLoop()
}
message Application.Loop()
{
// Event
}
{
// Enable the infinite loop
EnableApplicationLoop()
}
message Application.Loop()
{
// Event
}