I'd like to suggest the following change:

   http://members.aon.at/mfranz/splash.diff
   http://members.aon.at/mfranz/splash-w.diff   (same as first patch,
       but taken with -w option; i.e. without white-space changes, to
       please reviewers  :-)

The effect:

  - window/splash image immediately
  - no ugly white square if splash is de-activated
  - happier users  ;-)

It opens the window (with splash image if configured) as soon as possible,
and does all the other initializaion in the idle loop, split up into
appropriate chunks. The patch does basically only shuffle parts around,
without changing the order of initialization or removing anything. It is
tested with glut & sdl, with and without /sim/startup/splash-screen and
/sim/sceneryloaded-override.


  main.cxx     |  408 ++++++++++++++--------------
  renderer.cxx |  843 
+++++++++++++++++++++++++++++------------------------------
  splash.cxx   |   31 +-
  3 files changed, 646 insertions(+), 636 deletions(-)


Objection deadline ends in 10 minutes!  ;-)

m.

_______________________________________________
Flightgear-devel mailing list
[email protected]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to