Re: [Celestia-developers] Re: Choosing to load or not some extras?
Real-time 3D visualization of space
Status: Beta
Brought to you by:
cjlaurel
From: Harald S. <cel...@h-...> - 2006-02-23 17:12:11
|
On Thursday 23 February 2006 17:44, Selden E Ball Jr wrote: > Do objects actually need to be unloaded? I.e. databases deleted from > memory? Or would an internal draw/don't draw flag be adequate? > > If a database/Addon uses a lot of memory, for whatever reason (many > high resolution textures, for example) I can see that deleting it > from memory would be desirable, but how much recoding would be needed > compared to the code needed to include and test a flag? That's what I tried to address in my first mail. Textures are probably not a problem. They are only loaded on demand (c.f. preloading of textures) and IIRC they already are encapsulated in a way which should make unloading them feasible - if it's needed at all. The usual planetary systems (excluding textures) shouldn't take much resources. Star catalogues do, and are probably very difficult to remove (reloading them and omitting some catalogues in the process is probably a lot easier. But then you have to take care of current selection etc.). In between there are things like KBOs, locations and DSOs (possibly many of these) - for those it would be nice if they could be removed, but this probably requires many changes (ref-counting?). So the possibility to toggle visibility with a much better granularity may get the best effect/effort ratio :-) Harald |