Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2dcf392e authored by Jordan Frank's avatar Jordan Frank Committed by Steve Kondik
Browse files

Changed priority of SensorManager thread

	* changes:
	changed priority of SensorManager thread to be THREAD_PRIORITY_URGENT_DISPLAY so that samples from the sensors will arrive more regularly even under higher load.
parent a5dd229c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -364,7 +364,7 @@ public class SensorManager
                final float[] values = new float[3];
                final int[] status = new int[1];
                final long timestamp[] = new long[1];
                Process.setThreadPriority(Process.THREAD_PRIORITY_DISPLAY);
                Process.setThreadPriority(Process.THREAD_PRIORITY_URGENT_DISPLAY);

                if (!open()) {
                    return;