]> git.mxchange.org Git - flightgear.git/commit
Harald JOHNSEN:
authorehofman <ehofman>
Sun, 31 Jul 2005 09:04:18 +0000 (09:04 +0000)
committerehofman <ehofman>
Sun, 31 Jul 2005 09:04:18 +0000 (09:04 +0000)
commit83b414482f9b1f74939221469fefc9b8b48e54d7
tree09cc0d22f03db2cf48b6ee2f4940f00bdcae97e0
parent17ff8ec4a6b1c8b548c5da8d8423be400e38f139
Harald JOHNSEN:

I did some profiling of the code and found a few interessant things. Some corrections are obvious like the one in the multiplayer code, the fps is no more divided by 2 or 3 when another plane is on screen.

Other things like collision detection and computation of agl can not really be optimized. I changed a few things in hitlist.cxx but this only give a very low increase of fps. The groundcache eats a lot of cpu but I think that the real way to do it is to use a real collision system like OPCODE or something like that.

And I added an option to disable the recording of replay data. It takes more cpu than we can think.

Changes
=======

- panel.cxx :
  moved the computation of the instruments diffuse color outside the texturelayer code
  since this is constant during a frame, this is a big speedup for 2D panels ;

- hitlist.cxx :
  changed the computation of the intersection between ray and triangle, optimized
  the sphere culling by using a normalized direction vector. This can give a
  35% speedup on the computation of elevation in some situations ;

- renderer.cxx, acmodel.cxx :
  call ssgDrawAndCull with plane scene graph in external or internal view,
  calling ssgDrawAndCull with the root scene graph was drawing other players plane
  a second time in multiplayer mode ;

- mplayer.cxx :
  removed the calls to ssgFlatten and ssgStripify because it was degenerating models,
  causing a massive drop in frame rate ;

- replay.cxx :
  added an option to disable the recording of the flight

- fgclouds.cxx :
  changed the path of cloudlayer properties to match preferences.xml ;
  set the altitude of clouds from scenarios to a more correct value if metar is not enabled ;
src/Environment/fgclouds.cxx
src/Main/renderer.cxx
src/Model/acmodel.cxx
src/MultiPlayer/mpplayer.cxx
src/Replay/replay.cxx
src/Replay/replay.hxx
src/Scenery/hitlist.cxx