]> git.mxchange.org Git - simgear.git/commit
Fix growing memory consumption issues
authorThorstenB <brehmt@gmail.com>
Wed, 28 Mar 2012 20:53:30 +0000 (22:53 +0200)
committerThorstenB <brehmt@gmail.com>
Wed, 28 Mar 2012 20:53:30 +0000 (22:53 +0200)
commitece38a6dbf4c4d7d4ab042f9096b2d69b02412d1
treeab16b9746b6506d167eb0eed17dbe3b1879bf0fd
parenta592488f3e18a68bdf020a0413cd45356dfa638c
Fix growing memory consumption issues
References in simgear's cache maps prevented effects, textures, clouds,
trees and lights from being unloaded at run-time (ref-counter could never
reach 0). Changed cache maps to use OSG 'observer' pointers instead, so
reference counters aren't influenced, though cache maps still hold an
(observing) pointer. Also take care when finding a cache entry with empty
content (i.e. texture was unloaded).
simgear/scene/material/Effect.cxx
simgear/scene/material/Effect.hxx
simgear/scene/material/TextureBuilder.cxx
simgear/scene/material/makeEffect.cxx
simgear/scene/sky/newcloud.cxx
simgear/scene/sky/newcloud.hxx
simgear/scene/tgdb/TreeBin.cxx
simgear/scene/tgdb/pt_lights.cxx