From fee6f126842473eed8ee991264ad26bfbea360b1 Mon Sep 17 00:00:00 2001 From: Georgii Surkov Date: Wed, 7 Feb 2024 11:43:28 +0300 Subject: [PATCH] Improve responsiveness in heavy games at the expense of dropped frames --- applications/services/expansion/expansion_worker.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/applications/services/expansion/expansion_worker.c b/applications/services/expansion/expansion_worker.c index eef51d2f6..70b2a1103 100644 --- a/applications/services/expansion/expansion_worker.c +++ b/applications/services/expansion/expansion_worker.c @@ -372,6 +372,9 @@ ExpansionWorker* expansion_worker_alloc(FuriHalSerialId serial_id) { instance->rx_buf = furi_stream_buffer_alloc(EXPANSION_WORKER_BUFFER_SIZE, 1); instance->serial_id = serial_id; + // Improves responsiveness in heavy games at the expense of dropped frames + furi_thread_set_priority(instance->thread, FuriThreadPriorityLow); + return instance; }