Effectivly Drawing a Real-Time Game
Hello, I have several questions regarding the methods needed to draw a real-time game. First of all, is there a way of using Hardware accelerated graphics in Java? Secondly, and more to the point, my real-time game needs to repaint the screen every 25 milliseconds. The actual painting is done in the paintComponent method of my Game component (which extends JPanel). Anyway, I need to draw the background Image and to draw the foreground image onto existing terrain. I am painting the whole Background image (clipped to the size of the screen) each repaint. Furthermore, I draw the Foreground Image once for each polygon in my Vector of Polygons which describe the terrain - each time the graphics is clipped to the current terrain polygon I am referring to. This means I draw the amount of Polygons + 1 images every 25 milliseconds (And some of which are 3000x3000 pixels big). No wonder the screen is flickering... However, I do not know any alternate way (even though I am sure one exists). Any help would be kindly appreciated.
With Thanks,
laginimaineb.

