Skip to main content
gamedev.net
🔒 Locked

Java Images...

Started by ngc_10 1 reply 650+ views
Original Post
ngc_10
ngc_10
I am having a major preformance problem with drawImage in Java. Does anyone know the most effeicent method of displaying images to the screen? Your reply would be appricated.
jermz
jermz
This question should be posed in the Java forum, but here is a basic reply:

1. Make sure your image is in the same color format as ALL the Graphics classes you will be drawing it to.

2. Make sure your Graphics classes aren''t clearing themselves every paint()

3. Use active drawing instead of passive (search on google)

4. Use the newer 1.4 JDK with its new classes.

The performance of Java for graphics may never meet your needs. Drawing 1024x768 images at 30 fps is an unreachable goal on most computers using java.
ngc_10
ngc_10
thanks, sorry about the post being in the wrong place.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.