[JAVA2D] Question about recommended render loop for BufferStrategy...

2007-07-09 Thread Ken Warner
According to the documentation on: http://java.sun.com/javase/6/docs/api/java/awt/image/BufferStrategy.html One is supposed to do { Graphics graphics = strategy.getDrawGraphics(); //render here graphics.dispose(); } while (strategy.contentsRestored()); So I did that where I

Re: [JAVA2D] Question about recommended render loop for BufferStrategy...

2007-07-09 Thread Dmitri Trembovetski
Hi Ken, first of all, rendering to the same graphics context from multiple thread is not a good idea. Java2D does not guarantee thread safety, and doing so could lead to unpredictable results (and even crashes due to bugs in our code). So, please don't do that. As to your question