Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions app/src/main/java/app/gamenative/PrefManager.kt
Original file line number Diff line number Diff line change
Expand Up @@ -1977,4 +1977,9 @@ object PrefManager {
var sharedShaderCache: Boolean
get() = getPref(SHARED_SHADER_CACHE, true)
set(value) { setPref(SHARED_SHADER_CACHE, value) }

private val FRAME_THREAD_PLACEMENT = booleanPreferencesKey("frame_thread_placement")
var frameThreadPlacement: Boolean

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: This adds the advertised preference but does not expose it in the app, so users have no way to disable frame-thread placement through frameThreadPlacement; add a performance-settings switch and persist its value through this property.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At app/src/main/java/app/gamenative/PrefManager.kt, line 1982:

<comment>This adds the advertised preference but does not expose it in the app, so users have no way to disable frame-thread placement through `frameThreadPlacement`; add a performance-settings switch and persist its value through this property.</comment>

<file context>
@@ -1977,4 +1977,9 @@ object PrefManager {
         set(value) { setPref(SHARED_SHADER_CACHE, value) }
+
+    private val FRAME_THREAD_PLACEMENT = booleanPreferencesKey("frame_thread_placement")
+    var frameThreadPlacement: Boolean
+        get() = getPref(FRAME_THREAD_PLACEMENT, true)
+        set(value) { setPref(FRAME_THREAD_PLACEMENT, value) }
</file context>

get() = getPref(FRAME_THREAD_PLACEMENT, true)
set(value) { setPref(FRAME_THREAD_PLACEMENT, value) }
}
Loading
Loading