In this chapter, I will introduce you to a number of advanced graphics topics including hardware-accelerated images, multi-buffering, and full-screen exclusive mode. Hardware-accelerated images can be used to increase the frame rate by storing and manipulating image data directly in video memory. Multi-buffering uses additional image buffers so that the generation of the screen image can take place in a thread separate from the event dispatch thread. Running your game in full-screen exclusive mode allows it to fill the entire screen and is also required for setting the display mode and preventing tearing, that little ripple that sometimes appears if the video memory is being updated while the monitor is being refreshed.
KeywordsAutomatic Image Pixel Data Display Mode Game Graphic Core Package
Unable to display preview. Download preview PDF.
- Feldman, Ari. “Designing for Different Display Modes.” Chapter 2 in Designing Arcade Computer Game Graphics. Piano, TX: Wordware Publishing, 2000.Google Scholar
- Kesselman, Jeffrey. “Understanding the AWT Image Types.” 2001.Google Scholar
- Martak, Michael. “Full-Screen Exclusive Mode API.” http://java.sun.com/docs/books/tutorial/extra/fullscreen/.
- Sun Microsystems. “High Performance Graphics.” http://java.sun.com/products/java-media/2D/perf_graphics.html.
- Sun Microsystems. “The VolatileImage API User Guide.” ftp://ftp.java.sun.com/docs/j2se1.4/VolatileImage.pdf.