Canvas Draw: Difference between revisions

m
→‎Approach: https://forum.flightgear.org/search.php?st=0&sk=t&sd=d&sr=posts&keywords=canvas+animations+timers+listeners
m (https://sourceforge.net/p/flightgear/fgaddon/HEAD/tree/trunk/Addons/CanvasDrawDev/)
m (→‎Approach: https://forum.flightgear.org/search.php?st=0&sk=t&sd=d&sr=posts&keywords=canvas+animations+timers+listeners)
Line 79: Line 79:


Once the canvas.draw module is sufficiently mature it would be reviewed and get committed to the base package.
Once the canvas.draw module is sufficiently mature it would be reviewed and get committed to the base package.
== Animation Handling ==
At some point, anything involving symbol/display animations (i.e. Nasal callbacks handling updates via timers and listeners) should ideally be wrapped using a corresponding set of helper classes, so that if/when more appropriate native helpers become available, such "animations" can be mapped to corresponding native code, instead of relying on hundreds of Nasal timers and listeners, which are infamous for being the most likely culprits when it comes to resource leaks.


== HUD Parser ==
== HUD Parser ==