Forum Discussion
winmill
5 years agoReel Rookie
Thanks for the point on the bitmap.Finish(). Removing that takes 20ms from the execution time.
The 55" TCL is still at 531ms for the CreateObject("roBitmap") call. The Roku model number is A105X, so it's an A000X device in the hardware specs table.
I did get a chance to run this on a 40" TCL (an 8000X device). It ran in 79ms after removing the bitmap.Finish() call.
The 55" TCL A000X device has good specs on the hardware table, but seems to take a long time to create a bitmap.
winmill
5 years agoReel Rookie
More diagnostics. This code snippet now runs in 3ms on the 55" TCL.
'screen = CreateObject("roSGScreen")
screen = CreateObject("roScreen", true)
timer = CreateObject("roTimespan")
timer.Mark()
bitmap = CreateObject("roBitmap", {width: 146, height: 146, AlphaEnable: true})
bitmap.Finish()
print "Device roBitmap create: " + timer.TotalMilliseconds().ToStr() + "ms"If I change the comment lines and use the line with "roSGScreen" instead of "roScreen", then it takes 518ms.
So, it seems that using SceneGraph increases CreateObject("roBitmap") from 3ms to 518ms.