Stuart Buchanan wrote:
> Scott Hamilton wrote:
>   
>> On Tue, 2009-10-06 at 22:06 -0400, William Harrison wrote:
>>
>>     
>>>>    Maybe it's just me, but has anyone noticed a dramatic performance 
>>>> decrease with 3d clouds after this patch?
>>>>         
>>>  yep, from 30fps to 2fps...
>>>       
>
> I'm very surprised that performance has decreased so significantly. However, 
> there is a possible explanation.
>
> The code falls back to a 2D cloud layer if a 3D cloud isn't defined for a 
> specific cloud type (st, ac etc.). IIRC
> previously we didn't define a 3D stratus layer, so we'd get a 2D layer 
> instead.
>
> The updated 3D clouds include stratus layers (which look rather nice IMO), 
> but require quite a larger number
> of sprites - something like 40 per cloud. I've seen a small perf hit from the 
> new stratus layers, but nothing like
> what you have reported.
>
> I suspect what you are seeing if the difference between a 2D and 3D cloud.
>
> What performance change are you seeing with, say, cumulus clouds, which 
> haven't changed much?
>
> BTW - I've updated Docs/Readme.3Dclouds with information on the new format, 
> if anyone is interested in enhancing
> the clouds.
>
> -Stuart
>   

What I have seen (airplane-ufo, altitude - 2000ft, cloud layer 0 = 
4000ft, overcast, cloud layer 1 = 19500ft, cirrus):
1. 3D clouds OFF from command line: FPS=70, memory usage 360M, layer 0 - 
visible.

2. 3D clouds ON from  command line: memory usage from 800M up to 1.2G
    - pitch =0 deg : FPS=10-12
    - pitch =90 deg : FPS=70
    - pitch =-90 deg : FPS=70

3. 3D clouds ON from  command line, than switch OFF from menu : FPS = 
60-70, memory usage 700-800M

4. 3D clouds ON from  command line,  start at lat,lon = 0, 0 (no scenery 
loaded) : NO clouds in layer 0, both 3D and 2D. If switch 3D clouds OFF 
from menu then 2D clouds appears.

With respect,
Alex



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to