Resource Tracking for FlightGear: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
No edit summary
mNo edit summary
Line 25: Line 25:
-->
-->


{{FGCquote|1= we want to avoid writing explicit deletes as much as possible, as that need is the source of most memory leaks. We have two classes for smart, referencecounted pointers, osg::ref_ptr and SGSharedPtr which should be used for all long-lived, shared objects. |2= {{cite web  | url    = http://forum.flightgear.org/viewtopic.php?p=214289#p214289  | title  = <nowiki>Re: How can I retire from the forum?</nowiki>  | author = <nowiki>Tim Moore</nowiki>  | date  = Sat, 19 Jan 2008 02:40:21 -0800  }}}}
{{FGCquote|1= we want to avoid writing explicit deletes as much as possible, as that need is the source of most memory leaks. We have two classes for smart, referencecounted pointers, <code>osg::ref_ptr</code> and <code>SGSharedPtr</code> which should be used for all long-lived, shared objects. |2= {{cite web  | url    = http://forum.flightgear.org/viewtopic.php?p=214289#p214289  | title  = <nowiki>Re: How can I retire from the forum?</nowiki>  | author = <nowiki>Tim Moore</nowiki>  | date  = Sat, 19 Jan 2008 02:40:21 -0800  }}}}


{{FGCquote|1= it also opens up a larger question of how we do memory management in FG, and whether we should be doing things such as more aggressively freeing up terrain tiles.  At one level, removing entire terrain tiles from memory earlier if memory occupancy becomes a concern would be a better management strategy than just stopping generating new buildings.|2= {{cite web  | url    = http://forum.flightgear.org/viewtopic.php?p=165125#p165125  | title  = <nowiki>Re: Random Buildings</nowiki>  | author = <nowiki>stuart</nowiki>  | date  = Aug 24th, 2012  }}}}
{{FGCquote|1= it also opens up a larger question of how we do memory management in FG, and whether we should be doing things such as more aggressively freeing up terrain tiles.  At one level, removing entire terrain tiles from memory earlier if memory occupancy becomes a concern would be a better management strategy than just stopping generating new buildings.|2= {{cite web  | url    = http://forum.flightgear.org/viewtopic.php?p=165125#p165125  | title  = <nowiki>Re: Random Buildings</nowiki>  | author = <nowiki>stuart</nowiki>  | date  = Aug 24th, 2012  }}}}

Navigation menu