On Sunday 21 October 2007 13:37, Melchior FRANZ wrote:
> * Heiko Schulz -- Sunday 21 October 2007:
> > So your FGFS runs totally smooth?
>
> Basically, yes. Both branches. But of course, I get irregular
> stutters when some new object is to be loaded, because an
> MP-player joins in, or I approach KSFO and the Golden Gate
> bridge has to be loaded etc. But there's no interval freezing.
> (And I know the phenomenon very well. As I said, I had that
> myself a while ago. Funnily, nobody else could reproduce it
> back then. ;-)
>

FWIW, the plib branch has a cache that keeps track of already loaded AI 
models. Whenever a new model is needed (either by AI or by multiplayer), 
already loaded models are shared; otherwise a new model is loaded. The models 
are not persistent, however, so that once the model is no longer needed is 
gets unloaded. And of course, the next time somebody joins a multiplayer 
session with that aircraft, it has to be loaded again. ... 

Considering that we have many, many shared models, it might be an idea to add 
a similar model cache for non aircraft models. For AI Aircraft the model 
loading / unloading is very noticeable, and for some of the more complex 
buildings / structures / airports thats also the case. That would mitigate 
the loading strain for these models quite a bit.  Making the cache persistent 
would be quite trivial, and probably further reduce the model loading 
stutters. 

The OSG branch doesn't have a caching mechanism, and if I understood Mathias 
correctly, that would also not be necessary. I've been experimenting with 
that a bit yesterday, and I'm not so sure anymore that is the case. I still 
need to double check my notes with Mathias. In the mean time, I've been 
working on adding an experimental model cache to the OSG branch for 
(AI/Multiplayer) aircraft, and it does seem to help reduce the model loading 
related  stutters (at least on my laptop). Again, we could expand the same 
caching logic to the non aircraft models, and make the cache optionally 
persistent. Before going into that, however, I'd like to compare notes with 
Mathias.

Cheers,
Durk

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to