mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-17 19:35:00 -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)
|
val audioLatch = CountUpAndDownLatch(1, latch)
|
||||||
Thread({
|
Thread({
|
||||||
try {
|
try {
|
||||||
|
Thread.currentThread().priority = Thread.MAX_PRIORITY
|
||||||
audioPlayer.init(audioLatch)
|
audioPlayer.init(audioLatch)
|
||||||
audioPlayer.startLoop()
|
audioPlayer.startLoop()
|
||||||
audioPlayer.exit()
|
audioPlayer.exit()
|
||||||
@ -80,6 +81,7 @@ class Rendering(private val connection: PlayConnection) {
|
|||||||
|
|
||||||
private fun startRenderWindow(latch: CountUpAndDownLatch) {
|
private fun startRenderWindow(latch: CountUpAndDownLatch) {
|
||||||
try {
|
try {
|
||||||
|
Thread.currentThread().priority = Thread.MAX_PRIORITY
|
||||||
CONTEXT_MAP[Thread.currentThread()] = renderWindow
|
CONTEXT_MAP[Thread.currentThread()] = renderWindow
|
||||||
renderWindow.init(latch)
|
renderWindow.init(latch)
|
||||||
renderWindow.startLoop()
|
renderWindow.startLoop()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user