20,741
edits
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
In FlightGear, a '''callback''' is a function that will typically be invoked by either a [[#Timers]] or a property [[#Listeners]]. One of the most common ways of using timers and listeners is FlightGear scripting via the built-in [[Nasal]] scripting language. However, the underlying code is not specific to Nasal scripting, i.e. is also widely used in native/C++ code. | In FlightGear, a '''callback''' is a function that will typically be invoked by either a [[#Timers]] or a property [[#Listeners]]. One of the most common ways of using timers and listeners is FlightGear scripting via the built-in [[Nasal]] scripting language. However, the underlying code is not specific to Nasal scripting, i.e. is also widely used in native/C++ code. | ||
Improper use of timers and listeners is one of the most common causes for FlightGear performance issues, because function callbacks (code) may be registered to be triggered/executed more often than required. | |||
* [[Nasal Callbacks Explained]] | * [[Nasal Callbacks Explained]] |