Why do i need to create game loop like those on yt with delta and other stuff if my game loop works fine
java
public void run(){
while(gameThread != null){
update();
repaint();
try {
Thread.sleep(9);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
}