
Signature
Knute Johnson
email s/nospam/knute/
On Jun 19, 3:49 am, Knute Johnson <nos...@rabbitbrush.frazmtn.com>
wrote:
> Can you post a simple example that demonstrates your problem?
well, it is a _lot_ of code. i try to reduce the amount:
////////////////////////////////////////////////////////////////
// main window (extends JFrame) c-tor contains:
// ...
// add JInternalFrames to 'this'
// ...
setIgnoreRepaint(true); // skipping this doesn't help
setExtendedState(JFrame.MAXIMIZED_BOTH);
setVisible(true);
validate();
createBufferStrategy(2);
bufferStrategy = getBufferStrategy();
////////////////////////////////////////////////////////////////
// main loop of the rendering thread contains:
g = (Graphics2D) bufferStrategy.getDrawGraphics();
g.clearRect(0, 0, getContentPane().getWidth(),
getContentPane().getHeight());
// ...
// draw lots of BufferedImages using d.drawImage(...)
// ...
bufferStrategy.show();
g.dispose();
++framesRendered;