Is there any performance difference between drawBitmap and Layers system?

From the developer api documentation, a layer draws by system with bitblit. Is it the same process to draw bitmap on dc? Which one is faster or efficient (I mean battery consumption)?

  • Or, could someone share a link to an api sourcecode, if it's opensource?

    I'm really interested in implementation of Layers. It would be more convenient if developer could set the drawing order - before onUpdate or after onUpdate. The current implementation is always after onUpdate(). The easiest way is to add one more Array of Layers, which will be rendered before onUpdate()

  • The SDK is not open source.

    In general, direct dc calls are more efficient in speed, memory and battery.

    You really can't have this before onUpdate, as it's something that happens in onUpdate.

  • Ok, dc.drawBitmap() and after onUpdate() layers drawind could be identical.

    And in case with Layers, currently developers have to create at least 2 layers. because everything that were drawn by dc.draw**** will be overlayed after onUpdate when layers will be rendered. So, to use layers need to create at least 2 and do not draw on dc. As a result +1 fullscreen buffer.