def getFpsAcousticsOnly(nbSteps): env = BenchmarkEnvironment(activeEngines=['acoustics']) start = timer() env.simulate(nbSteps=nbSteps) end = timer() elapsed = (end - start) env.destroy() fps = nbSteps/elapsed return fps
def getFpsAll(nbSteps): # 'acoustics' world temporarily disabled env = BenchmarkEnvironment(activeEngines=['physics', 'render']) start = timer() env.simulate(nbSteps=nbSteps) end = timer() elapsed = (end - start) env.destroy() fps = nbSteps/elapsed return fps