Reset & re-init: Difference between revisions

(Switch to {{gitorious source}} to fix the broken Gitorious link.)
 
Line 39: Line 39:


== Status / related Commits (01/2016) ==
== Status / related Commits (01/2016) ==
reset looks to most subsystems like ‘off and on again’, i.e nothing should survive in terms of instances - everything is destroyed and re-created. This includes Nasal so add-ons should just work. Any property data needs to survive should be marked on the SGPropertyNode with a flag (I think it’s ‘archived’ but I will check), it will be saved across the reset, and hence visible to the subsystem when it comes back up again. No special Nasal or signals should be needed, since the idea is that reset looks exactly like a full shutdown and then a clean start. Adding additional signals will break that concept, and potentially bring us back to a dangerous world where some systems behave differently on reset to first-time-init, which is a very bad thing in my opinion.<ref>{{cite web
  |url    =  https://sourceforge.net/p/flightgear/mailman/message/36067277/
  |title  =  <nowiki> Re: [Flightgear-devel] Addons - reinit (fgcamera) </nowiki>
  |author =  <nowiki> James Turner </nowiki>
  |date  =  Oct 7th, 2017
  |added  =  Oct 7th, 2017
  |script_version = 0.40
  }}</ref>
{{FGCquote|1= I guess we know already that one ain't really working :-/ Unless this has been fixed, any reset freees all uniforms in the effect systems to their value at reset - doesn't show dramatically initially, but in fact lighting never changes from that point, snow line doesn't, dynamical displacement of shadows doesn't work,...|2= {{cite web  | url    = http://forum.flightgear.org/viewtopic.php?p=258691#p258691  | title  = <nowiki>Re: Please test the 3.6 RC</nowiki>  | author = <nowiki>Thorsten</nowiki>  | date  = Sep 25th, 2015  }}}}
{{FGCquote|1= I guess we know already that one ain't really working :-/ Unless this has been fixed, any reset freees all uniforms in the effect systems to their value at reset - doesn't show dramatically initially, but in fact lighting never changes from that point, snow line doesn't, dynamical displacement of shadows doesn't work,...|2= {{cite web  | url    = http://forum.flightgear.org/viewtopic.php?p=258691#p258691  | title  = <nowiki>Re: Please test the 3.6 RC</nowiki>  | author = <nowiki>Thorsten</nowiki>  | date  = Sep 25th, 2015  }}}}