This page was last modified 21:21, 30 January 2008.
Double Buffering
From Forum Nokia Wiki
When drawing animated images directly on the screen, many times an undesirable effect named flickering is perceived.
A common technique to avoid this is to draw images on an off-screen buffer, and them copy its contents to the screen when the drawing operations are finished. To implement this technique two buffers are required, hence the term "double buffering". This off-screen buffer has the same dimensions of the screen.
During the time of MIDP 1.0 phones, there was no Java support for this technique, so the developer had to implement it.
However, for MIDP 2.0 phones, the GameCanvas API supports double-buffering automatically. Here you can find a sample of this technique.
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problem with Translate mathod | chandu_bgm | Mobile Java Media (Graphics & Sounds) | 3 | 2004-01-24 12:04 |
| Help Needed for Translate Method...... | chandu_bgm | Mobile Java General | 1 | 2003-05-28 16:56 |
| incorrect PKG updates | metalim | Symbian Tools & SDKs | 2 | 2007-02-14 15:02 |
| how to write and read float values to/from databases? | dehlerm | Python | 5 | 2007-11-20 21:45 |
| Problems with Thread.sleep() | tjessy | Mobile Java Media (Graphics & Sounds) | 3 | 2003-08-31 23:06 |
