fgdata/Nasal: avoid performance drop after sim reset/relocate
authorThorstenB <brehmt@gmail.com>
Tue, 20 Mar 2012 20:18:20 +0000 (21:18 +0100)
committerThorstenB <brehmt@gmail.com>
Tue, 20 Mar 2012 20:18:20 +0000 (21:18 +0100)
commitf1e4c6503643587a933e742fcfc15cb5af127802
tree5e37853b183861f5e5dc43237d407e33e3603a70
parent3af8afb71715da0c9f7a3423a82d46f8fb204fb9
fgdata/Nasal: avoid performance drop after sim reset/relocate
"/sim/signals/fdm-initialized" triggers _every_ time the FDM is reset,
so for every sim reset/relocate.
We need to uninstall the listeners after its first execution, or guard
certain parts of the initialization, to avoid starting multiple
"timer/update loops", or installing multiple property listeners.
Repeating "sim reset" often enough would eventually completely block/
overload the system.
Nasal/failures.nas
Nasal/fuel.nas
Nasal/glide_slope_tunnel.nas
Nasal/redout.nas
Nasal/screen.nas
Nasal/view.nas