I always see people talking at GoogleIO or WWDC about how drawing the screen(bits/pixels) on mobile devices is so expensive. Can anyone explain why this is?
I always see people talking at GoogleIO or WWDC about how drawing the screen(bits/pixels)
Share
Because pixel drawing does not make use of any graphic acceleration hardware. For instance, pixel drawing in Java is executed using the general purpose instruction set of the device. For instance, creating the text I’m writing pixel by pixel in Java would be very slow. Instead, the graphics acceleration hardware pipeline allows moving of many pixel at the time and also allows for drawing geometrical objects using special hardware operators on the mobile chip (like for instance the Tegra chip). This goes for Androids and Apple devices as well as for some graphics frameworks on desktop computers.
Sometimes you will have no choice, but as a role of thumb, try to use the higher level API’s to draw to the screen as they will have a chance to map to the hardware accelerated capabilities of your device.