winmill
5 years agoReel Rookie
CreateObject roBitmap execution time
I tracked down my app's response lag to the CreateObject("roBitmap") call. This call seems to have a wide range of execution times on devices I can test.
On most recent devices (e.g. 3930X), it takes 72ms. However, on a recent 55" TCL (55S525), this call takes 551ms. I tried a factory reset, but still see same results.
Here's the code that I've inserted into hello-world to test.
timer = CreateObject("roTimespan") timer.Mark() bitmap = CreateObject("roBitmap", {width: 146, height: 146, AlphaEnable: true}) bitmap.Finish() print "Device roBitmap create: " + timer.TotalMilliseconds().ToStr() + "ms"
Why would this call take so long on a device?