This article applies to the BlackBerry® wireless device based on Java™.
Graphics buffering is a task done frequently to reduce flicker caused by repainting a display surface. The idea is that all image data is first drawn to a buffer in memory and the contents of the buffer are copied quickly to the display surface. This should reduce the time to repaint the screen and, in turn, the flicker. The BlackBerry device supports this concept. In BlackBerry Device Software 3.8 and 4.0, the screen buffer size approximately obeys the following formula:
(screen width * screen height)
Note: As a calculation safe guard, this formula is approximate and the actual buffer is a little larger than what the formula indicates.
For Device Software 4.0 Service Pack 2 and later, the size of the buffer is increased to approximately obey this new formula:
(screen width * screen height * 2)
Note: As a calculation safeguard, the actual buffer is a little larger.