+ 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(); } } } }

5th Nov 2017, 3:50 PM
Gabriel Quintana
Gabriel Quintana - avatar
1 Odpowiedź
0
ir = if just Change it
6th Nov 2017, 6:09 AM
George Kassih
George Kassih - avatar