mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-17 11:24:56 -04:00
rendering: set high priority
This commit is contained in:
parent
c3e3bdc9ac
commit
36fd3a8f8f
@ -59,6 +59,7 @@ class Rendering(private val connection: PlayConnection) {
|
||||
val audioLatch = CountUpAndDownLatch(1, latch)
|
||||
Thread({
|
||||
try {
|
||||
Thread.currentThread().priority = Thread.MAX_PRIORITY
|
||||
audioPlayer.init(audioLatch)
|
||||
audioPlayer.startLoop()
|
||||
audioPlayer.exit()
|
||||
@ -80,6 +81,7 @@ class Rendering(private val connection: PlayConnection) {
|
||||
|
||||
private fun startRenderWindow(latch: CountUpAndDownLatch) {
|
||||
try {
|
||||
Thread.currentThread().priority = Thread.MAX_PRIORITY
|
||||
CONTEXT_MAP[Thread.currentThread()] = renderWindow
|
||||
renderWindow.init(latch)
|
||||
renderWindow.startLoop()
|
||||
|
Loading…
x
Reference in New Issue
Block a user