new Thread(){ @Override public void run(){ while(true){ buffer.clear(java.awt.Color.WHITE); world.renderScene(buffer); world.draw(buffer); buffer.update(); buffer.displayGLOnly(); canvas.repaint(); try { sleep(100); } catch (InterruptedException ex) { //do nothing } } } }.start();
unless you have another thread that does funny things with jPCT related objects in parallel to your rendering thread. Do you?
yes Egon, there's another thread that keeps polling mouse and keyboard transforming, removing adding objects based on action.