updating Gdx.audio on separate thread

This commit is contained in:
minjaesong
2023-11-08 23:42:17 +09:00
parent beb7f1fb73
commit 2f11988353
8 changed files with 722 additions and 31 deletions

View File

@@ -18,7 +18,8 @@ class AudioManagerRunnable : Runnable {
dT = (T - oldT) / 1000000000f
oldT = T;
AudioManager.update(dT)
Thread.sleep(20L)
// println("AudioManagerRunnable dT = ${dT * 1000f} ms")
Thread.sleep(30L)
}
catch (e: InterruptedException) {
break