A colleague and I have made some pretty significant modifications to the Example mainSim3 in order to test modeling STK scenarios in OpenEaagles. Everything is working well, but we're running into a problem with the simulation time. Our whole scenario takes about 30 minutes in real-time to complete, and it is not practical to wait that long while debugging our setup. We tried the following modification to timerFunc in main.cpp as a potential solution:
const unsigned int frameRate = 20;
void timerFunc(int) {
const double dt = 1.0 / static_cast<double>(frameRate);
const auto millis = static_cast<unsigned int>((dt0 * 1000) / 2); // millis = 25
glutTimerFunc(millis, timerFunc, 1);
oe::base::Timer::updateTimers(dt);
oe::graphics::Graphic::flashTimer(dt);
station->updateData(dt);
}
The idea is to double the rate of update while still reporting a delta time of 1/20 to the simulation. Not only did this not increase the speed of our simulation, but it doesn't seem to have had any effect at all. Does anyone have any suggestions? I feel there must be a way to run the simulation faster than real-time.
Thanks for your help.