[gameprogrammer] Re: Java Advice - 2D RTS Graphics

There are several BufferStrategies you can use, so check the API docs to decide on the best for your needs.

Before you do anything else, you might also want to make sure you are setting the clip rectangle in your Graphics2d object when you are updating your screen, so that you only update the parts that need to be updated.

Is there a "BufferedStrategy.READ_MY_MIND" setting? ;)

I'll read up on the clip rectangle too - I do try to draw only units that are in the visible rectangle, but maybe I'm doing extra work if something is already available...

Thanks muchly, sir! :)
-Mike





--------------------- To unsubscribe go to http://gameprogrammer.com/mailinglist.html


Other related posts: