mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-19 12:56:06 +00:00
feat: cap the frame rate in session for games launched without Steam (#1813)
This commit is contained in:
1 parent
67d391958f
commit
b75060c280
7 files changed
+54
-5
No files matched your search
@@ -8,6 +8,15 @@ class OutputPacingTest {
|
||||
assertEquals(SessionPrefs.FPS_UNPACED, SessionPrefs.compositorFpsLimit(0))
|
||||
}
|
||||
|
||||
@Test fun sessionLimitPacesThePhone() {
|
||||
assertEquals(45, SessionPrefs.compositorFpsLimit(0, 45))
|
||||
}
|
||||
|
||||
@Test fun sessionLimitNeverExceedsTheGlassesRate() {
|
||||
assertEquals(60, SessionPrefs.compositorFpsLimit(60, 90))
|
||||
assertEquals(30, SessionPrefs.compositorFpsLimit(60, 30))
|
||||
}
|
||||
|
||||
@Test fun mirroringKeepsTheGlassesRate() {
|
||||
assertEquals(60, SessionPrefs.compositorFpsLimit(60))
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user