Hi Siu. I tried to use this but I’m getting a runtime error at line 180 with display.enableStatistics(true) (a nil value). I don’t recognise this display function and couldn’t find anything about it on the solar2d pages…?
I’ll be the first to say I’m reluctant to update too regularly, but as 3713 is almost 18 months old now it was probably a good thing that this prompted you to update .
There’s a few things that have been fixed/updated since then.
Just FYI, your CPU and GPU timings are very inaccurate and not representative of actual runtime values. The values returned from display.getStatistics() are not usable for that, you need to use display.getTimings() instead.
You can use plugin.profiler if you want accurate, frame, layout and GPU timings. You can check the source to my plugin to see how the real timings are derived.
Nice work on the vertical/horizontal flip - that’s kinda cool!