Profile slow frames only

I would like to filter profiling results so that only samples are left for slow frames. By which I mean frames that took longer that the fps the game is running at. I would like this to be available for lua.

Additionally, a function that pauses the runtime when a frame took too long would be nice, for manual debugging of variables. I guess that when debugging with nova, this is already available. (use getCurrentTimeMillis and set a breakpoint when the deltatime is larger that 34ms. Not sure whether it works on real hardware)

Reason: the main purpose of optimizing is decreasing the maximum frametimes, so it would be nice to be able to filter on those.


That's a great idea! I'm looking forward to implementing it, I think it'll be really useful. Thanks for the suggestion!


Great! Up to your judgment whether a useful metric can be implemented for the simulator.