Log overall simulation time or average frame time
#1
Is there a way to display not only the individual frame times, but also the average frame times or the time needed for the last simulation to be completed after hitting play?
I have found the debug settings printed to the Listener as well as the Profiler in the Utilities, but they only seem to display individual frames.


Edit: Here's an AI-script that seems to work fairly well:

Code:
t1 = timestamp()
-- Advance the time slider to the last frame (forces sim to compute)
slidertime = animationrange.end
t2 = timestamp()
timeTaken = (t2 - t1) / 1000.0
format "Simulation time: %.2f seconds\n" timeTaken
  Reply


Messages In This Thread
Log overall simulation time or average frame time - by Findus - 06-03-2025, 12:17 AM

Forum Jump: