I updated CVS and rebuilt fgfs last night (Cygwin, W2000, AMD64, nVidia) and fired up the new binary (all default options)
When it finally finished loading (slow Cygwin startup problem - but that is not the problem today...) the splash screen started to fade out, and then popped back to full opacity, and start to fade out again, and then popped back... continuously. I could see that increasing the throttle made things happen behind the pulsing splash screen, but it was not easy to see what was going on! I did some investigation and discovered that in renderer.cxx, where the splash screen is faded out, globals->get_sim_time_sec is having 1s subtracted from it every second, giving a sawtooth profile if you plot sim time vs real time. Exactly which range of numbers you get changes, but I saw it ramp from -0.2 to 0.8, and -0.35 to 0.65. To test whether it was elapsed time or the value of sim_time that was triggering the subtraction, I added a line that set sim_time to 1 whenever it was above 0.5. This caused the reported time to ramp up to 0.5, jump to 1.0, stay there for a while and then drop to zero and the cycle start again. Again this cycle had a frequency of 1s, which corresponded to 38 frames on my system. So I concluded that it was a per elapsed time (or number of frames but 38 seems unlikely) event, not based on the value of sim_time. I had a grep through the code, and could find only two occurrences of globals->set_sim_time_sec - one in main.cxx for the initial start up, and one in renderer.cxx which keeps the sim time at 0 until initialisation has finished. Neither of these is the culprit. I grepped around for other likely tell tales but could not find anything. I am now stuck to discover what is resetting the sim time. Anyone else got any ideas? Richard ________________________________________________________________________ This e-mail has been scanned for Bede Scientific Instruments for all viruses by Star Internet. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________ _______________________________________________ Flightgear-devel mailing list [email protected] http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d
