Canvas news: Difference between revisions

Jump to navigation Jump to search
Line 41: Line 41:
   }}</ref>
   }}</ref>


it’s easy for to add native helpers to Canvas to set some properties from code directly, rather than using the canvas.nas wrappers which then use props.nas internally. This could bypass a whole ton of Nasal if that’s the issue. Of course this code will still have to update properties from C++, so we should rather do the analysis first to see where the slowness occurs, since this could either be a very big win, or completely pointless based on that measurement.<ref>{{cite web
it’s easy to add native helpers to Canvas to set some properties from code directly, rather than using the canvas.nas wrappers which then use props.nas internally. This could bypass a whole ton of Nasal if that’s the issue. Of course this code will still have to update properties from C++, so we should rather do the analysis first to see where the slowness occurs, since this could either be a very big win, or completely pointless based on that measurement.<ref>{{cite web
   |url    =  https://sourceforge.net/p/flightgear/mailman/message/35976398/  
   |url    =  https://sourceforge.net/p/flightgear/mailman/message/35976398/  
   |title  =  <nowiki> Re: [Flightgear-devel] Nasal property lookup performance </nowiki>  
   |title  =  <nowiki> Re: [Flightgear-devel] Nasal property lookup performance </nowiki>  

Navigation menu