flushGraphics();

The 320x240 era has become a rich preserve for retro enthusiasts. Because Java ME runs on a virtual machine, it is emulation-friendly.

This example sets the game window size to 320x240 using Gdx.graphics.setWindowedMode(320, 240) .

A Java game JAR for 320x240 had to be ruthlessly optimized. The resolution demanded precisely 76,800 pixels per frame. In an environment without hardware-accelerated 2D rendering (relying on the proprietary javax.microedition.lcdui.Graphics class), every draw operation mattered. Game developers utilized techniques such as:

The landscape resolution was preferred for high-production titles from major developers like Glu Mobile Action & Shooters: N.O.V.A. 2