mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-19 21:06:09 +00:00
perf(session): boost the game's busiest threads on every Snapdragon 8 Elite (#2608)
Game thread hints only ran on the Odin 3 (CQ8725S). Phones with the SM8750 have the same core layout and power HAL, so turn them on there too. Co-authored-by: Tapuuk <177422350+Tapuuk@users.noreply.github.com>
This commit is contained in:
1 parent
293ed4fb08
commit
68f1d5baa3
2 files changed
+14
-1
No files matched your search
@@ -6,6 +6,15 @@ import org.junit.Assert.assertTrue
|
||||
import org.junit.Test
|
||||
|
||||
class GameThreadHintsTest {
|
||||
@Test fun `hints run on the Snapdragon 8 Elite only`() {
|
||||
assertTrue(GameThreadHints.supported("CQ8725S"))
|
||||
assertTrue(GameThreadHints.supported("SM8750"))
|
||||
assertTrue(GameThreadHints.supported("QTI SM8750"))
|
||||
assertFalse(GameThreadHints.supported("SM8650"))
|
||||
assertFalse(GameThreadHints.supported("SM8850"))
|
||||
assertFalse(GameThreadHints.supported(""))
|
||||
}
|
||||
|
||||
@Test fun `a thread joins above 60 percent and leaves under 15`() {
|
||||
assertEquals(emptySet<Int>(), GameThreadHints.pick(emptySet(), mapOf(1 to 0.55)))
|
||||
assertEquals(setOf(1), GameThreadHints.pick(emptySet(), mapOf(1 to 0.68)))
|
||||
|
||||
Reference in new issue
Block a user