On 13.04.2011 22:52, Csaba Halász wrote: > On Wed, Apr 13, 2011 at 9:16 PM, ThorstenB wrote: >> I never ran FG for 6 hours with clouds& MP enabled though. But are we >> sure that the OSG cache itself really made a major difference now? > > Yes, pretty sure. I fly FG during the monthly TGA events, and it was > never even half as bad as this time. Except for the one massive leak > you fixed, but luckily I didn't try to run that version during an > event :)
I looked into OSG's cache behaviour when running FlightGear. Worked as expected though: I see the objects being dropped once they are no longer referenced and have expired. However, I saw the same issue which my memory debugger had reported before: some scenery elements, mainly related to MP aircraft, don't (always) get deleted. Indeed, these elements stick in the OSG cache now. But they stick since their reference count proves that they are still referenced elsewhere - so the cache holds on to them. It wouldn't help to drop referenced objects from the cache - they wouldn't be deleted anyway. So, yes, there's a leak related to MP aircraft - but the cause seems to be independent of the OSG cache. I'll be doing some more tests though. I've also pushed an update to clear the entire OSG cache when reloading scenery (see menu "Debug" => "Reload Scenery"). If memory consumption explodes, try triggering a scenery reload to wipe the cache. I doubt this would reduce memory though - but maybe there's a surprise. Csaba, which OSG version are you running anyway? cheers, Thorsten ------------------------------------------------------------------------------ Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is a top priority.Virtualization can reduce costs, simplify management, and improve application availability and disaster protection. Learn more about boosting the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev _______________________________________________ Flightgear-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/flightgear-devel

