Howto:Disable Nasal entirely: Difference between revisions

Jump to navigation Jump to search
no edit summary
m (→‎Patch: untested for now ...)
No edit summary
Line 9: Line 9:


|objective-body=disable Nasal scripting
|objective-body=disable Nasal scripting
|background-body=Nasal performance, garbage collection overhead, impact on frame rate and frame spacing
|background-body=
* Nasal performance
* garbage collection overhead
* impact on frame rate and frame spacing
{{FGCquote
|1= I should still have an old topic branch that disabled FGNasalSys entirely - i.e. the fg_init.cxx, but also the roughly ~10 places where a handle (pointer) to the FGNasalSys instance in the SGSubsysmMgr is acquired to run some Nasal code on demand (think GUI, joystick, keyboard, AI/scenery stuff).
In and of itself, that will obviously not be particularly useful, because fgfs is rather "crippled" with so much of its (current) UI/aircraft functionality tied to Nasal code all over the place, but it may still be interesting for the FGPythonSys effort, because it provides a good baseline for fgfs performance without _any_ Nasal code running at all, including obviously GC issues - even if only to illustrate (and prove) that FlightGear is still suffering from resource leaks and race conditions that have nothing to do with Nasal.
In other words, this is something where FGPythonSys and FGNasalSys could benefit eachother in the near term, while providing benefits for FG in the long term.
 
 
|2= {{cite web
  | url    = http://forum.flightgear.org/viewtopic.php?p=277163#p277163
  | title  = <nowiki>Re: FGPython an propose for Python as an nasal alternative</nowiki>
  | author = <nowiki>Hooray</nowiki>
  | date  = Feb 22nd, 2016
  | added  = Feb 22nd, 2016
  | script_version = 0.25
  }}
}}
 
{{FGCquote
|1= that could be quite useful for experimentation purposes, unit testing, and maybe coming up with a [[Talk:FGPythonSys#FGNasalSys vs FGPythonSys - common baseclass|FGScriptingSys base class]].
|2= {{cite web
  | url    = http://forum.flightgear.org/viewtopic.php?p=277164#p277164
  | title  = <nowiki>Re: FGPython an propose for Python as an nasal alternative</nowiki>
  | author = <nowiki>bugman</nowiki>
  | date  = Feb 22nd, 2016
  | added  = Feb 22nd, 2016
  | script_version = 0.25
  }}
}}
|status-body=updated/rebased patch
|status-body=updated/rebased patch
}}
}}

Navigation menu