Hello. I am looking at the Native Simple Lua project but adding some simple code that moves something across the screen using eventFrame Runtime listener, and looking at the energy impact and average “component utilisation” in Xcode.
On iPhone SE using IOS 13 it shows maximum energy impact.
How is this so high? Is this something to do with OpenGL ES?
Yeah sure its just really basic stuff as I said. One item moving on enterFrame. Completely not intensive at all. Im wondering if Xcode isn’t reporting it properly if its an older OpenGl or Xcode is expecting Metal.
Could be that. Display related stuff consumes most power anyway, enterframe calls that every 16ms and apple may try to convice ppl to use metal. It’d be useful to know values that things do and require in general
I did an equivalent simple project in Gideros , also with a Metal enabled version. The Open GL (3) version was running at 17% CPU and the Metal one was running at 11%. So Metal seems to save a lot there. Both 100% all CPU and no GPU.
But back to Corona using Open GL2 - that’s using less CPU at 6% but its sharing it for some reason 50/50 between CPU and GPU. I wonder why the GPU is being worked so much for a scrolling rectangle.
Yeah sure its just really basic stuff as I said. One item moving on enterFrame. Completely not intensive at all. Im wondering if Xcode isn’t reporting it properly if its an older OpenGl or Xcode is expecting Metal.
Could be that. Display related stuff consumes most power anyway, enterframe calls that every 16ms and apple may try to convice ppl to use metal. It’d be useful to know values that things do and require in general
I did an equivalent simple project in Gideros , also with a Metal enabled version. The Open GL (3) version was running at 17% CPU and the Metal one was running at 11%. So Metal seems to save a lot there. Both 100% all CPU and no GPU.
But back to Corona using Open GL2 - that’s using less CPU at 6% but its sharing it for some reason 50/50 between CPU and GPU. I wonder why the GPU is being worked so much for a scrolling rectangle.