I need to develop a slide-show routine which displays 64 full screen images as fast as possible. i.e.
- Load image from disk to an image array
- Switch to full screen mode
- drawImage()
- delay and draw next image
As I need very little delay (about 15ms, that is 64 fps) between each image, I have done the following to optimize the slideshow:
- switch to full-screen exclusive mode
- use multi-buffering and flipping in JDK 1.4
- use 640x480x32 resolution instead of 1024x768
But the result is still unsatisfactory. Even though there is no flickering, the delay between images is unpredictable (I use sleep(15) but the delay is sometime several seconds!) and sometimes the screen just blanks out without displaying any images. I seem to recall there are alternatives to drawImage() method, does anyone know how to use them, or have better way to optimize the display?
p.s. Slideshow is not allowed to skip any images, all images must be displayed once within the time frame.