+ 1
Alguien me puede explicar esto?
publi void run( ) { if (running) return; init ( ); long starTime; long elapsed; long wait; while (running) { startTime = System.nanoTime ( ); update ( ); requestRender ( ); elapsed = System.nanoTime ( ) - startTime; wait = targetTime - elapsed / 1000000; if (wait > 0) { try (wait > 0) { Thread.sleep (wait); } catch (Excepcion e){ e.printStackTrace(); } } } }
1 Odpowiedź
0
ir = if just Change it