[quote]deltaTime/1e9 * 1000 is the same as deltaTime/1e6.
[/quote]
Ah true XD
Still a bit confused on
public void render() {
do{
do{
Graphics2D g = (Graphics2D)bufferStrategy.getDrawGraphics();
b3.paint(g);
g.dispose();
}while(bufferStrategy.contentsRestored());
bufferStrategy.show();
}while(bufferStrategy.contentsLost());
}
As Opposed to
public void render() {
Graphics2D g = (Graphics2D) bufferStrategy.getDrawGraphics();
g.clearRect(0, 0, WIDTH, HEIGHT);
b3.paint(g);
g.dispose();
bufferStrategy.show();
}
I thought that clearRect was needed?