mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-24 23:36:04 +00:00
Feat: toggle to show hud only in a game (#2970)
* Add HUD visibility toggle for active games * Add HUD visibility translations for all languages * Fix HUD game visibility and Turkish strings * Support compositor-only HUD game detection * Fix HUD activity reconciliation and Steam focus * Clear stale Gamescope focus metadata * Clear stale Steam focus when metadata is unavailable * Prevent HUD flicker on metadata read failures * Prevent HUD visibility flicker * Fix HUD visibility during compositor activity * Fix HUD visibility during compositor activity * Prevent Steam SHM frames activating HUD * Fix HUD activity detection when Steam is focused * Remove HUD detection comments * Fix HUD game activity detection * Fix HUD compositor activity detection * Use Gamescope frames for HUD activity detection * Restore fullscreen SHM frame statistics callback * Restore fullscreen SHM frame statistics callback * Fix HUD SHM frame reporting * Prevent Steam focus from activating game-only HUD * Fix SHM frame freshness guard and test harness * Used suggestion code from rabbit * Ignore Steam UI frames for game-only HUD * Keep default HUD stats updating over Steam UI * Isolate Steam fallback frame statistics * Isolate Steam fallback frame statistics * Trigger HUD APK build
This commit is contained in:
1 parent
e709e1c454
commit
f920aad104
43 files changed
+190
-11
No files matched your search
@@ -737,6 +737,11 @@ static void describe(const struct surface *s, char *out, size_t size) {
|
||||
else snprintf(out, size, "window %#x (%s)", w->hwnd, prog);
|
||||
}
|
||||
|
||||
static int is_steam_client_surface(const struct surface *s) {
|
||||
const char *name = client_name(wl_resource_get_client(s->resource));
|
||||
return strcmp(name, "steam") == 0 || strstr(name, "steamwebhelper") != NULL;
|
||||
}
|
||||
|
||||
static struct surface *toplevel_by_hwnd(uint32_t hwnd) {
|
||||
struct surface *s;
|
||||
wl_list_for_each(s, &g_toplevels, toplevel_link)
|
||||
@@ -894,6 +899,7 @@ int droiddeck_hud_frame_times(float *out, int len, int64_t *total) {
|
||||
static uint64_t g_game_frames;
|
||||
extern void droiddeck_on_game_surface(const char *window, const char *gpu);
|
||||
extern void droiddeck_on_game_frame(void);
|
||||
extern void droiddeck_on_compositor_frame(void);
|
||||
extern void droiddeck_on_content_rate(int fps);
|
||||
static int64_t g_cadence_ns;
|
||||
static int64_t g_cadence_frames;
|
||||
@@ -949,9 +955,10 @@ static void take_shm(struct surface *s, struct wl_shm_buffer *shm, struct wl_res
|
||||
g_hud_shm = s;
|
||||
g_hud_shm_ns = now;
|
||||
g_hud_new = 1;
|
||||
droiddeck_on_game_frame();
|
||||
}
|
||||
}
|
||||
if (s == g_hud_shm && (!g_hud_surface || now_ns() - g_hud_last_ns > 1000000000LL))
|
||||
droiddeck_on_compositor_frame();
|
||||
}
|
||||
|
||||
static void take_pixel(struct surface *s, const uint8_t bgra[4], struct wl_resource *buffer) {
|
||||
@@ -1025,7 +1032,8 @@ static void take_dmabuf(struct surface *s, struct dmabuf_buffer *b, struct wl_re
|
||||
droiddeck_log("error", "could not import GPU frames from %s (%dx%d, modifier %#llx)",
|
||||
name, b->width, b->height, (unsigned long long)b->modifier);
|
||||
}
|
||||
if (s != g_hud_surface && (b->img || ahb_swapchain_has_ahb(b)) &&
|
||||
if (s != g_hud_surface && !is_steam_client_surface(s) &&
|
||||
(b->img || ahb_swapchain_has_ahb(b)) &&
|
||||
(!g_hud_surface || now_ns() - g_hud_alive_ns > 1000000000LL || (!repeat && below_surface(s, g_hud_surface)) ||
|
||||
(announced_now && !below_surface(g_hud_surface, s) &&
|
||||
(int64_t)b->width * b->height >= (int64_t)g_hud_surface->buf_w * g_hud_surface->buf_h))) {
|
||||
@@ -1050,9 +1058,12 @@ static void take_dmabuf(struct surface *s, struct dmabuf_buffer *b, struct wl_re
|
||||
: "the compositor's driver could NOT import it (nothing can show it)");
|
||||
s->hdr_fmt_logged = b->format;
|
||||
}
|
||||
if (s == g_hud_surface) {
|
||||
if (s == g_hud_surface && !is_steam_client_surface(s)) {
|
||||
g_hud_alive_ns = now_ns();
|
||||
if (!repeat) { g_hud_last_ns = g_hud_alive_ns; g_hud_fresh = 1; g_hud_new = 1; g_game_frames++; note_game_frame_gap(); droiddeck_on_game_frame(); }
|
||||
} else if (is_steam_client_surface(s) && !repeat &&
|
||||
(!g_hud_surface || now_ns() - g_hud_alive_ns > 1000000000LL)) {
|
||||
droiddeck_on_compositor_frame();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -63,6 +63,7 @@ static jclass g_compositor_cls;
|
||||
static jmethodID g_on_first_frame;
|
||||
static jmethodID g_on_game_surface;
|
||||
static jmethodID g_on_game_frame;
|
||||
static jmethodID g_on_compositor_frame;
|
||||
static jmethodID g_on_game_program;
|
||||
static jmethodID g_on_pointer_lock;
|
||||
static jmethodID g_on_clipboard;
|
||||
@@ -84,6 +85,7 @@ JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM *vm, void *reserved) {
|
||||
g_on_game_surface = (*env)->GetStaticMethodID(env, g_compositor_cls, "onGameSurface",
|
||||
"(Ljava/lang/String;Ljava/lang/String;)V");
|
||||
g_on_game_frame = (*env)->GetStaticMethodID(env, g_compositor_cls, "onGameFrame", "()V");
|
||||
g_on_compositor_frame = (*env)->GetStaticMethodID(env, g_compositor_cls, "onCompositorFrame", "()V");
|
||||
g_on_game_program = (*env)->GetStaticMethodID(env, g_compositor_cls, "onGameProgram",
|
||||
"(ILjava/lang/String;)V");
|
||||
if ((*env)->ExceptionCheck(env)) { (*env)->ExceptionClear(env); g_on_game_program = NULL; }
|
||||
@@ -154,6 +156,13 @@ void droiddeck_on_game_frame(void) {
|
||||
if ((*env)->ExceptionCheck(env)) (*env)->ExceptionClear(env);
|
||||
}
|
||||
|
||||
void droiddeck_on_compositor_frame(void) {
|
||||
JNIEnv *env;
|
||||
if (!g_compositor_cls || !g_on_compositor_frame || !(env = thread_env())) return;
|
||||
(*env)->CallStaticVoidMethod(env, g_compositor_cls, g_on_compositor_frame);
|
||||
if ((*env)->ExceptionCheck(env)) (*env)->ExceptionClear(env);
|
||||
}
|
||||
|
||||
void droiddeck_on_refresh_target(int refresh, int frame_rate) {
|
||||
JNIEnv *env;
|
||||
if (!g_compositor_cls || !g_on_refresh_target || !(env = thread_env())) return;
|
||||
|
||||
@@ -1545,6 +1545,10 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
secondScreenDisplays = secondScreenDisplays,
|
||||
selectedSecondScreenDisplay = selectedSecondScreenDisplay,
|
||||
onHud = { on -> SessionPrefs.setHudEnabled(this@SessionActivity, on); hudOn = on; hud.refresh() },
|
||||
onHudOnlyDuringGame = { on ->
|
||||
SessionPrefs.setHudOnlyDuringGame(this@SessionActivity, on)
|
||||
hud.refresh()
|
||||
},
|
||||
onGpuClockPin = { on ->
|
||||
SessionPrefs.setGpuClockPin(this@SessionActivity, on)
|
||||
gpuClockPin = on
|
||||
|
||||
@@ -44,6 +44,35 @@ class DroidDeckHudHost(context: Context) {
|
||||
private var protonPid = 0
|
||||
private var proton = ""
|
||||
@Volatile private var lastWindow: String? = null
|
||||
@Volatile private var lastCompositorFrameNanos = 0L
|
||||
@Volatile private var lastVisibilityGameActive = false
|
||||
private var candidateGameActive = false
|
||||
private var candidateGameActiveSinceNs = 0L
|
||||
private var stableGameActive = false
|
||||
|
||||
private fun isGameActive(): Boolean {
|
||||
val now = System.nanoTime()
|
||||
val compositorLive = lastCompositorFrameNanos > 0L &&
|
||||
now - lastCompositorFrameNanos <= 1_000_000_000L
|
||||
val detected = if (feed.live) {
|
||||
feed.steamFocusKnown && !feed.steamFocused
|
||||
} else {
|
||||
compositorLive
|
||||
}
|
||||
|
||||
if (detected != candidateGameActive) {
|
||||
candidateGameActive = detected
|
||||
candidateGameActiveSinceNs = now
|
||||
}
|
||||
|
||||
if (detected != stableGameActive &&
|
||||
now - candidateGameActiveSinceNs >= GAME_ACTIVITY_STABLE_NS
|
||||
) {
|
||||
stableGameActive = detected
|
||||
}
|
||||
|
||||
return stableGameActive
|
||||
}
|
||||
|
||||
var onPresentingWindowChanged: (() -> Unit)? = null
|
||||
|
||||
@@ -66,6 +95,12 @@ class DroidDeckHudHost(context: Context) {
|
||||
}
|
||||
|
||||
override fun onGameFrame() {
|
||||
if (feed.live && (!feed.steamFocusKnown || feed.steamFocused)) return
|
||||
lastCompositorFrameNanos = System.nanoTime()
|
||||
feed.onCompositorFrame(lastCompositorFrameNanos)
|
||||
}
|
||||
|
||||
override fun onCompositorFrame() {
|
||||
feed.onCompositorFrame(System.nanoTime())
|
||||
}
|
||||
}
|
||||
@@ -73,7 +108,9 @@ class DroidDeckHudHost(context: Context) {
|
||||
private val frameCallback = object : Choreographer.FrameCallback {
|
||||
override fun doFrame(frameTimeNanos: Long) {
|
||||
if (!running || !polling) return
|
||||
reconcileGameActivity()
|
||||
if (feed.poll(System.nanoTime())) view?.onFrames()
|
||||
reconcileGameActivity()
|
||||
Choreographer.getInstance().postFrameCallback(this)
|
||||
}
|
||||
}
|
||||
@@ -151,7 +188,7 @@ class DroidDeckHudHost(context: Context) {
|
||||
|
||||
fun refresh() {
|
||||
applyConfig()
|
||||
if (!enabled) stop() else if (!running) start()
|
||||
if (!enabled) stop() else if (!running) start() else applyShown()
|
||||
}
|
||||
|
||||
fun start() {
|
||||
@@ -181,14 +218,26 @@ class DroidDeckHudHost(context: Context) {
|
||||
applyShown()
|
||||
}
|
||||
|
||||
private fun reconcileGameActivity() {
|
||||
if (!SessionPrefs.hudOnlyDuringGame(context)) {
|
||||
lastVisibilityGameActive = isGameActive()
|
||||
return
|
||||
}
|
||||
if (isGameActive() != lastVisibilityGameActive) applyShown()
|
||||
}
|
||||
|
||||
private fun applyShown() {
|
||||
if (!running) return
|
||||
val show = !hidden && !backgrounded
|
||||
val onlyDuringGame = SessionPrefs.hudOnlyDuringGame(context)
|
||||
val gameActive = isGameActive()
|
||||
val show = !hidden && !backgrounded && (!onlyDuringGame || gameActive)
|
||||
view?.visibility = if (show) View.VISIBLE else View.GONE
|
||||
showing = show
|
||||
if (show != polling) {
|
||||
polling = show
|
||||
if (show) Choreographer.getInstance().postFrameCallback(frameCallback)
|
||||
lastVisibilityGameActive = gameActive
|
||||
val shouldPoll = !hidden && !backgrounded && (show || onlyDuringGame)
|
||||
if (shouldPoll != polling) {
|
||||
polling = shouldPoll
|
||||
if (shouldPoll) Choreographer.getInstance().postFrameCallback(frameCallback)
|
||||
else Choreographer.getInstance().removeFrameCallback(frameCallback)
|
||||
}
|
||||
}
|
||||
@@ -532,6 +581,7 @@ class DroidDeckHudHost(context: Context) {
|
||||
}
|
||||
|
||||
companion object {
|
||||
private const val GAME_ACTIVITY_STABLE_NS = 350_000_000L
|
||||
private const val DOCK_OVERHANG = 0.4f
|
||||
private const val PREVIEW_FROM = 0.55f
|
||||
private const val STRIP_PULL_ACROSS_DP = 360f
|
||||
|
||||
@@ -183,6 +183,8 @@ internal class GameFrameFeed(
|
||||
private set
|
||||
@Volatile var steamFocused = false
|
||||
private set
|
||||
@Volatile var steamFocusKnown = false
|
||||
private set
|
||||
@Volatile var pid = 0
|
||||
private set
|
||||
@Volatile var outputWidth = 0
|
||||
@@ -198,10 +200,16 @@ internal class GameFrameFeed(
|
||||
val compositorAdded = compositorFrames != seenCompositorFrames
|
||||
seenCompositorFrames = compositorFrames
|
||||
if (handle == 0L) {
|
||||
if (nowNs < nextOpenNs) return compositorAdded
|
||||
if (nowNs < nextOpenNs) {
|
||||
|
||||
return compositorAdded
|
||||
}
|
||||
nextOpenNs = nowNs + REOPEN_NS
|
||||
handle = runCatching { HudFrames.nativeOpen(file.path) }.getOrDefault(0L)
|
||||
if (handle == 0L) return compositorAdded
|
||||
if (handle == 0L) {
|
||||
|
||||
return compositorAdded
|
||||
}
|
||||
HudFrames.nativePoll(handle, frametimes, times)
|
||||
}
|
||||
val n = HudFrames.nativePoll(handle, frametimes, times)
|
||||
@@ -219,6 +227,7 @@ internal class GameFrameFeed(
|
||||
fromGamescope = false
|
||||
}
|
||||
if (n <= 0 && nowNs - maxOf(lastRingFrameNs, nextOpenNs - REOPEN_NS) > STALE_NS) close()
|
||||
|
||||
if (nowNs - lastInfoNs >= INFO_NS) {
|
||||
lastInfoNs = nowNs
|
||||
readInfo()
|
||||
@@ -250,6 +259,7 @@ internal class GameFrameFeed(
|
||||
}
|
||||
|
||||
fun close() {
|
||||
fromGamescope = false
|
||||
if (handle != 0L) HudFrames.nativeClose(handle)
|
||||
handle = 0L
|
||||
}
|
||||
@@ -265,6 +275,7 @@ internal class GameFrameFeed(
|
||||
outputHeight = info[2]
|
||||
refreshMilliHz = info[3]
|
||||
steamFocused = info[4] != 0
|
||||
steamFocusKnown = true
|
||||
engine = engineLabel(name)
|
||||
}
|
||||
|
||||
|
||||
@@ -502,6 +502,13 @@ object SessionPrefs {
|
||||
|
||||
fun hudEnabled(context: Context): Boolean = prefs(context).getBoolean(hudKey(context), false)
|
||||
|
||||
fun hudOnlyDuringGame(context: Context): Boolean =
|
||||
prefs(context).getBoolean("hudOnlyDuringGame", false)
|
||||
|
||||
fun setHudOnlyDuringGame(context: Context, on: Boolean) {
|
||||
prefs(context).edit().putBoolean("hudOnlyDuringGame", on).apply()
|
||||
}
|
||||
|
||||
fun setHudEnabled(context: Context, on: Boolean) {
|
||||
prefs(context).edit().putBoolean(hudKey(context), on).apply()
|
||||
}
|
||||
|
||||
@@ -21,11 +21,21 @@ import com.droiddeck.launcher.session.StripMetric
|
||||
@Composable
|
||||
internal fun DroidDeckHudSettings(host: MenuHost, a: DrawerActions, track: (String) -> Modifier) {
|
||||
val cfg = a.hudConfig
|
||||
val context = LocalContext.current
|
||||
var onlyDuringGame by remember { mutableStateOf(SessionPrefs.hudOnlyDuringGame(context)) }
|
||||
fun on(key: String) = cfg[key] == "1"
|
||||
fun int(key: String, fallback: Int) = cfg[key]?.toIntOrNull() ?: fallback
|
||||
|
||||
SettingsGroup(stringResource(R.string.drawer_hud)) {
|
||||
ToggleRow(host, "hud", stringResource(R.string.drawer_hud), null, a.hudOn, chipModifier = track("hud"), onChange = a.onHud)
|
||||
if (a.hudOn) ToggleRow(
|
||||
host, "hud-only-during-game", stringResource(R.string.hud_only_during_game),
|
||||
stringResource(R.string.hud_only_during_game_hint), onlyDuringGame,
|
||||
chipModifier = track("hud-only-during-game")
|
||||
) { on ->
|
||||
onlyDuringGame = on
|
||||
a.onHudOnlyDuringGame(on)
|
||||
}
|
||||
if (!a.hudOn) return@SettingsGroup
|
||||
val size = DroidDeckHudSize.from(cfg["hudSize"])
|
||||
ChoiceRow(host, "hud-size", stringResource(R.string.hud_size), stringResource(R.string.hud_size_hint),
|
||||
|
||||
@@ -283,6 +283,7 @@ class DrawerActions(
|
||||
val secondScreenDisplays: List<SecondScreenDisplay>,
|
||||
val selectedSecondScreenDisplay: Int,
|
||||
val onHud: (Boolean) -> Unit,
|
||||
val onHudOnlyDuringGame: (Boolean) -> Unit = {},
|
||||
val onHudSetting: (String, String) -> Unit = { _, _ -> },
|
||||
val onGpuClockPin: (Boolean) -> Unit = {},
|
||||
val onHudOrder: (Map<String, Boolean>, List<String>) -> Unit = { _, _ -> },
|
||||
|
||||
@@ -26,6 +26,7 @@ public final class WaylandCompositor {
|
||||
public interface GameListener {
|
||||
void onGameSurface(String window, String gpuName);
|
||||
void onGameFrame();
|
||||
default void onCompositorFrame() {}
|
||||
default void onGameProgram(int pid, String program) {}
|
||||
}
|
||||
|
||||
@@ -70,6 +71,12 @@ public final class WaylandCompositor {
|
||||
if (l != null) l.onGameFrame();
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
static void onCompositorFrame() {
|
||||
GameListener l = gameListener;
|
||||
if (l != null) l.onCompositorFrame();
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
static void onGameProgram(int pid, String program) {
|
||||
GameListener l = gameListener;
|
||||
|
||||
@@ -4237,4 +4237,6 @@
|
||||
<string name="theme_custom_signal">الإبرازات</string>
|
||||
<string name="theme_custom_good">نجاح</string>
|
||||
<string name="theme_custom_error">خطأ</string>
|
||||
<string name="hud_only_during_game">عرض HUD أثناء اللعب فقط</string>
|
||||
<string name="hud_only_during_game_hint">إخفاء HUD عند عدم اكتشاف إطارات اللعبة.</string>
|
||||
</resources>
|
||||
@@ -4117,4 +4117,6 @@
|
||||
<string name="theme_custom_signal">Destacados</string>
|
||||
<string name="theme_custom_good">Éxito</string>
|
||||
<string name="theme_custom_error">Error</string>
|
||||
<string name="hud_only_during_game">Mostrar el HUD solo durante una partida</string>
|
||||
<string name="hud_only_during_game_hint">Ocultar el HUD cuando no se detecten fotogramas del juego.</string>
|
||||
</resources>
|
||||
@@ -4077,4 +4077,6 @@
|
||||
<string name="theme_custom_signal">Акценти</string>
|
||||
<string name="theme_custom_good">Успех</string>
|
||||
<string name="theme_custom_error">Грешка</string>
|
||||
<string name="hud_only_during_game">Показвай HUD само по време на игра</string>
|
||||
<string name="hud_only_during_game_hint">Скривай HUD, когато не се засичат кадри от играта.</string>
|
||||
</resources>
|
||||
@@ -4157,4 +4157,6 @@
|
||||
<string name="theme_custom_signal">Zvýraznění</string>
|
||||
<string name="theme_custom_good">Úspěch</string>
|
||||
<string name="theme_custom_error">Chyba</string>
|
||||
<string name="hud_only_during_game">Zobrazovat HUD pouze během hry</string>
|
||||
<string name="hud_only_during_game_hint">Skrýt HUD, když nejsou detekovány snímky hry.</string>
|
||||
</resources>
|
||||
@@ -4077,4 +4077,6 @@
|
||||
<string name="theme_custom_signal">Fremhævninger</string>
|
||||
<string name="theme_custom_good">Succes</string>
|
||||
<string name="theme_custom_error">Fejl</string>
|
||||
<string name="hud_only_during_game">Vis kun HUD under spil</string>
|
||||
<string name="hud_only_during_game_hint">Skjul HUD, når der ikke registreres spilbilleder.</string>
|
||||
</resources>
|
||||
@@ -4077,4 +4077,6 @@
|
||||
<string name="theme_custom_signal">Hervorhebungen</string>
|
||||
<string name="theme_custom_good">Erfolg</string>
|
||||
<string name="theme_custom_error">Fehler</string>
|
||||
<string name="hud_only_during_game">HUD nur während eines Spiels anzeigen</string>
|
||||
<string name="hud_only_during_game_hint">HUD ausblenden, wenn keine Spielframes erkannt werden.</string>
|
||||
</resources>
|
||||
@@ -4077,4 +4077,6 @@
|
||||
<string name="theme_custom_signal">Επισημάνσεις</string>
|
||||
<string name="theme_custom_good">Επιτυχία</string>
|
||||
<string name="theme_custom_error">Σφάλμα</string>
|
||||
<string name="hud_only_during_game">Εμφάνιση HUD μόνο κατά τη διάρκεια παιχνιδιού</string>
|
||||
<string name="hud_only_during_game_hint">Απόκρυψη HUD όταν δεν ανιχνεύονται καρέ παιχνιδιού.</string>
|
||||
</resources>
|
||||
@@ -4117,4 +4117,6 @@
|
||||
<string name="theme_custom_signal">Destacados</string>
|
||||
<string name="theme_custom_good">Éxito</string>
|
||||
<string name="theme_custom_error">Error</string>
|
||||
<string name="hud_only_during_game">Mostrar el HUD solo durante una partida</string>
|
||||
<string name="hud_only_during_game_hint">Ocultar el HUD cuando no se detecten fotogramas del juego.</string>
|
||||
</resources>
|
||||
@@ -4077,4 +4077,6 @@
|
||||
<string name="theme_custom_signal">Korostukset</string>
|
||||
<string name="theme_custom_good">Onnistuminen</string>
|
||||
<string name="theme_custom_error">Virhe</string>
|
||||
<string name="hud_only_during_game">Näytä HUD vain pelin aikana</string>
|
||||
<string name="hud_only_during_game_hint">Piilota HUD, kun pelin ruutuja ei havaita.</string>
|
||||
</resources>
|
||||
@@ -4116,4 +4116,6 @@
|
||||
<string name="theme_custom_signal">Mises en évidence</string>
|
||||
<string name="theme_custom_good">Succès</string>
|
||||
<string name="theme_custom_error">Erreur</string>
|
||||
<string name="hud_only_during_game">Afficher le HUD uniquement pendant une partie</string>
|
||||
<string name="hud_only_during_game_hint">Masquer le HUD lorsqu’aucune image du jeu n’est détectée.</string>
|
||||
</resources>
|
||||
@@ -4077,4 +4077,6 @@
|
||||
<string name="theme_custom_signal">हाइलाइट</string>
|
||||
<string name="theme_custom_good">सफलता</string>
|
||||
<string name="theme_custom_error">त्रुटि</string>
|
||||
<string name="hud_only_during_game">HUD केवल गेम के दौरान दिखाएँ</string>
|
||||
<string name="hud_only_during_game_hint">गेम के फ़्रेम का पता न चलने पर HUD छिपाएँ।</string>
|
||||
</resources>
|
||||
@@ -4077,4 +4077,6 @@
|
||||
<string name="theme_custom_signal">Kiemelések</string>
|
||||
<string name="theme_custom_good">Siker</string>
|
||||
<string name="theme_custom_error">Hiba</string>
|
||||
<string name="hud_only_during_game">HUD megjelenítése csak játék közben</string>
|
||||
<string name="hud_only_during_game_hint">HUD elrejtése, ha nem észlelhetők játék képkockái.</string>
|
||||
</resources>
|
||||
@@ -4047,4 +4047,6 @@
|
||||
<string name="theme_custom_signal">Sorotan</string>
|
||||
<string name="theme_custom_good">Berhasil</string>
|
||||
<string name="theme_custom_error">Kesalahan</string>
|
||||
<string name="hud_only_during_game">Tampilkan HUD hanya saat bermain</string>
|
||||
<string name="hud_only_during_game_hint">Sembunyikan HUD saat tidak ada frame game yang terdeteksi.</string>
|
||||
</resources>
|
||||
@@ -4116,4 +4116,6 @@
|
||||
<string name="theme_custom_signal">Evidenziazioni</string>
|
||||
<string name="theme_custom_good">Successo</string>
|
||||
<string name="theme_custom_error">Errore</string>
|
||||
<string name="hud_only_during_game">Mostra l’HUD solo durante il gioco</string>
|
||||
<string name="hud_only_during_game_hint">Nascondi l’HUD quando non vengono rilevati fotogrammi del gioco.</string>
|
||||
</resources>
|
||||
@@ -4047,4 +4047,6 @@
|
||||
<string name="theme_custom_signal">強調表示</string>
|
||||
<string name="theme_custom_good">成功</string>
|
||||
<string name="theme_custom_error">エラー</string>
|
||||
<string name="hud_only_during_game">ゲーム中のみHUDを表示</string>
|
||||
<string name="hud_only_during_game_hint">ゲームのフレームが検出されないときはHUDを非表示にする。</string>
|
||||
</resources>
|
||||
@@ -4047,4 +4047,6 @@
|
||||
<string name="theme_custom_signal">강조 표시</string>
|
||||
<string name="theme_custom_good">성공</string>
|
||||
<string name="theme_custom_error">오류</string>
|
||||
<string name="hud_only_during_game">게임 중에만 HUD 표시</string>
|
||||
<string name="hud_only_during_game_hint">게임 프레임이 감지되지 않으면 HUD 숨기기.</string>
|
||||
</resources>
|
||||
@@ -4047,4 +4047,6 @@
|
||||
<string name="theme_custom_signal">Sorotan</string>
|
||||
<string name="theme_custom_good">Berjaya</string>
|
||||
<string name="theme_custom_error">Ralat</string>
|
||||
<string name="hud_only_during_game">Paparkan HUD hanya semasa bermain</string>
|
||||
<string name="hud_only_during_game_hint">Sembunyikan HUD apabila bingkai permainan tidak dikesan.</string>
|
||||
</resources>
|
||||
@@ -4077,4 +4077,6 @@
|
||||
<string name="theme_custom_signal">Uthevinger</string>
|
||||
<string name="theme_custom_good">Suksess</string>
|
||||
<string name="theme_custom_error">Feil</string>
|
||||
<string name="hud_only_during_game">Vis HUD bare mens du spiller</string>
|
||||
<string name="hud_only_during_game_hint">Skjul HUD når ingen spillbilder registreres.</string>
|
||||
</resources>
|
||||
@@ -4077,4 +4077,6 @@
|
||||
<string name="theme_custom_signal">Accenten</string>
|
||||
<string name="theme_custom_good">Geslaagd</string>
|
||||
<string name="theme_custom_error">Fout</string>
|
||||
<string name="hud_only_during_game">HUD alleen tijdens een game weergeven</string>
|
||||
<string name="hud_only_during_game_hint">Verberg de HUD wanneer er geen gameframes worden gedetecteerd.</string>
|
||||
</resources>
|
||||
@@ -4157,4 +4157,6 @@
|
||||
<string name="theme_custom_signal">Wyróżnienia</string>
|
||||
<string name="theme_custom_good">Sukces</string>
|
||||
<string name="theme_custom_error">Błąd</string>
|
||||
<string name="hud_only_during_game">Pokazuj HUD tylko podczas gry</string>
|
||||
<string name="hud_only_during_game_hint">Ukryj HUD, gdy nie wykryto klatek gry.</string>
|
||||
</resources>
|
||||
@@ -4116,4 +4116,6 @@
|
||||
<string name="display_scaling_integer">Inteiro</string>
|
||||
<string name="display_scaling_fit">Ajustar</string>
|
||||
<string name="drawer_antialiasing">Suavização de serrilhado</string>
|
||||
<string name="hud_only_during_game">Mostrar o HUD apenas durante um jogo</string>
|
||||
<string name="hud_only_during_game_hint">Ocultar o HUD quando não forem detetados fotogramas do jogo.</string>
|
||||
</resources>
|
||||
@@ -4124,4 +4124,6 @@
|
||||
<string name="display_scaling_integer">Inteiro</string>
|
||||
<string name="display_scaling_fit">Ajustar</string>
|
||||
<string name="drawer_antialiasing">Suavização de serrilhado</string>
|
||||
<string name="hud_only_during_game">Mostrar o HUD somente durante o jogo</string>
|
||||
<string name="hud_only_during_game_hint">Ocultar o HUD quando nenhum quadro do jogo for detectado.</string>
|
||||
</resources>
|
||||
@@ -4117,4 +4117,6 @@
|
||||
<string name="theme_custom_signal">Evidențieri</string>
|
||||
<string name="theme_custom_good">Succes</string>
|
||||
<string name="theme_custom_error">Eroare</string>
|
||||
<string name="hud_only_during_game">Afișează HUD-ul doar în timpul jocului</string>
|
||||
<string name="hud_only_during_game_hint">Ascunde HUD-ul când nu sunt detectate cadre ale jocului.</string>
|
||||
</resources>
|
||||
@@ -4157,4 +4157,6 @@
|
||||
<string name="theme_custom_signal">Выделения</string>
|
||||
<string name="theme_custom_good">Успех</string>
|
||||
<string name="theme_custom_error">Ошибка</string>
|
||||
<string name="hud_only_during_game">Показывать HUD только во время игры</string>
|
||||
<string name="hud_only_during_game_hint">Скрывать HUD, когда кадры игры не обнаруживаются.</string>
|
||||
</resources>
|
||||
@@ -4077,4 +4077,6 @@
|
||||
<string name="theme_custom_signal">Markeringar</string>
|
||||
<string name="theme_custom_good">Lyckades</string>
|
||||
<string name="theme_custom_error">Fel</string>
|
||||
<string name="hud_only_during_game">Visa HUD endast under spel</string>
|
||||
<string name="hud_only_during_game_hint">Dölj HUD när inga spelbildrutor upptäcks.</string>
|
||||
</resources>
|
||||
@@ -4047,4 +4047,6 @@
|
||||
<string name="theme_custom_signal">จุดเน้น</string>
|
||||
<string name="theme_custom_good">สำเร็จ</string>
|
||||
<string name="theme_custom_error">ข้อผิดพลาด</string>
|
||||
<string name="hud_only_during_game">แสดง HUD เฉพาะขณะเล่นเกม</string>
|
||||
<string name="hud_only_during_game_hint">ซ่อน HUD เมื่อไม่พบเฟรมของเกม</string>
|
||||
</resources>
|
||||
@@ -4077,4 +4077,6 @@
|
||||
<string name="theme_custom_signal">Vurgular</string>
|
||||
<string name="theme_custom_good">Başarılı</string>
|
||||
<string name="theme_custom_error">Hata</string>
|
||||
<string name="hud_only_during_game">HUD\'yi yalnızca oyun sırasında göster</string>
|
||||
<string name="hud_only_during_game_hint">Oyun kareleri algılanmadığında HUD\'yi gizle.</string>
|
||||
</resources>
|
||||
@@ -4157,4 +4157,6 @@
|
||||
<string name="theme_custom_signal">Виділення</string>
|
||||
<string name="theme_custom_good">Успіх</string>
|
||||
<string name="theme_custom_error">Помилка</string>
|
||||
<string name="hud_only_during_game">Показувати HUD лише під час гри</string>
|
||||
<string name="hud_only_during_game_hint">Приховувати HUD, коли кадри гри не виявляються.</string>
|
||||
</resources>
|
||||
@@ -4047,4 +4047,6 @@
|
||||
<string name="theme_custom_signal">Điểm nhấn</string>
|
||||
<string name="theme_custom_good">Thành công</string>
|
||||
<string name="theme_custom_error">Lỗi</string>
|
||||
<string name="hud_only_during_game">Chỉ hiển thị HUD khi đang chơi</string>
|
||||
<string name="hud_only_during_game_hint">Ẩn HUD khi không phát hiện khung hình trò chơi.</string>
|
||||
</resources>
|
||||
@@ -4047,4 +4047,6 @@
|
||||
<string name="theme_custom_signal">高亮</string>
|
||||
<string name="theme_custom_good">成功</string>
|
||||
<string name="theme_custom_error">错误</string>
|
||||
<string name="hud_only_during_game">仅在游戏期间显示 HUD</string>
|
||||
<string name="hud_only_during_game_hint">未检测到游戏帧时隐藏 HUD。</string>
|
||||
</resources>
|
||||
@@ -4047,4 +4047,6 @@
|
||||
<string name="theme_custom_signal">重點標示</string>
|
||||
<string name="theme_custom_good">成功</string>
|
||||
<string name="theme_custom_error">錯誤</string>
|
||||
<string name="hud_only_during_game">只在遊戲期間顯示 HUD</string>
|
||||
<string name="hud_only_during_game_hint">未偵測到遊戲畫面時隱藏 HUD。</string>
|
||||
</resources>
|
||||
@@ -4047,4 +4047,6 @@
|
||||
<string name="theme_custom_signal">醒目標示</string>
|
||||
<string name="theme_custom_good">成功</string>
|
||||
<string name="theme_custom_error">錯誤</string>
|
||||
<string name="hud_only_during_game">僅在遊戲期間顯示 HUD</string>
|
||||
<string name="hud_only_during_game_hint">未偵測到遊戲畫面時隱藏 HUD。</string>
|
||||
</resources>
|
||||
@@ -4380,6 +4380,10 @@
|
||||
<string name="onboarding_steam_failed">The Steam client download will retry</string>
|
||||
<string name="onboarding_limit_reason">Android can close Steam’s helper processes. Turn that off now, while the downloads run, and Play is ready the moment they finish.</string>
|
||||
<string name="onboarding_limit_action">Do it for me</string>
|
||||
<string name="onboarding_limit_while_waiting">Set up while you wait</string>
|
||||
<string name="onboarding_chip">Getting ready · %1$d%% · %2$s</string>
|
||||
<string name="hud_only_during_game">Show HUD only during a game</string>
|
||||
<string name="hud_only_during_game_hint">Hide the HUD when no game frames are detected.</string>
|
||||
<string name="onboarding_button_getting_ready">Getting ready · %1$d%%</string>
|
||||
<string name="onboarding_button_finish">Finish setup · %1$d%%</string>
|
||||
</resources>
|
||||
@@ -123,7 +123,8 @@ static int64_t now_ns(void) { return 0; }
|
||||
static struct surface *g_hud_surface, *g_hud_shm;
|
||||
static int64_t g_hud_shm_ns, g_hud_last_ns;
|
||||
static int g_hud_new;
|
||||
static void droiddeck_on_game_frame(void) {}
|
||||
static void __attribute__((unused)) droiddeck_on_game_frame(void) {}
|
||||
static void __attribute__((unused)) droiddeck_on_compositor_frame(void) {}
|
||||
struct client_info { int asked_feedback, shm_frames; };
|
||||
struct wl_shm_buffer { int w, h, stride; const void *data; };
|
||||
#define WL_SHM_FORMAT_ARGB8888 0
|
||||
|
||||
Reference in new issue
Block a user