Canvas development: Difference between revisions

Jump to navigation Jump to search
Line 487: Line 487:
   |date  =  Oct 9th, 2016  
   |date  =  Oct 9th, 2016  
   |added  =  Oct 9th, 2016  
   |added  =  Oct 9th, 2016  
  |script_version = 0.40
  }}</ref>
For the MFDs... let's go through the numbers. We have 40 pages by now, each displays on average something like 50 properties. That's 2000 getprop calls for the data provider to manage. At 3 H, and 30 fps, that's 200 requests per frame.
Now, if these 40, no more than 9 different ones can actually be on at any given time - so that's 450 getprop calls if you do it without data provider.
Now, we're not updating them all at once, we're updating in a staggered fashion - user selectable but per default just one display in a frame - so that's 50 getprop calls per frame. So effectively you get an update rate of ~3 Hz and query only the properties you really need.<ref>{{cite web
  |url    =  https://forum.flightgear.org/viewtopic.php?p=297596#p297596
  |title  =  <nowiki> Re: Nasal must go </nowiki>
  |author =  <nowiki> Thorsten </nowiki>
  |date  =  Oct 28th, 2016
  |added  =  Oct 28th, 2016
   |script_version = 0.40  
   |script_version = 0.40  
   }}</ref>
   }}</ref>

Navigation menu