]> git.mxchange.org Git - flightgear.git/commit
Stuart Buchanan :
authorfredb <fredb>
Thu, 6 Nov 2008 21:58:50 +0000 (21:58 +0000)
committerfredb <fredb>
Thu, 6 Nov 2008 21:58:50 +0000 (21:58 +0000)
commit7b547acbf9586c0569a36864e6efe98c8b4c5bb0
tree226e63c965ffb882794388274dd8148819c10e82
parent78d3763b41641d7e959c5701cba7bfbbfd04e766
Stuart Buchanan :
It fixes the following issues (to a greater or lesser extent):
1) Performance. Quad trees used to improve culling, and the sprites are placed on the surface of a sphere rather than
randomly throughout the cloud, requiring fewer textures. This saves about 5-10fps on my machine.
2) Disabled 3D clouds have no performance impact. Previously they were still in the scenegraph. Now they are removed.
3) Clouds are now loaded on start-up, and don't require the scenario to be changed, they also work with METAR.
4) The cloud field is shifted as you travel. There's a small bug in that the clouds "jump" as you reach the edge of the field.
5) Iterative sorting of sprites. This doesn't appear to solve the alpha blending problem completely, but may help a bit.
src/Environment/environment_mgr.cxx
src/Environment/fgclouds.cxx
src/Environment/fgclouds.hxx