fix(session): preserve guest monotonic time after long pauses (#2393)

This commit is contained in:
MaxsTechReview authored and GitHub committed 2026-11-12 01:25:21 -05:00
1 parent cd05c96d10
commit 01bfe8519e
14 files changed
+519 -13

No files matched your search

@@ -50,6 +50,7 @@ object CompositorHost {
refreshHz: Float,
fpsLimit: Int,
): Boolean {
WaylandCompositor.nativeSetClockControl(java.io.File(context.filesDir, "${com.droiddeck.launcher.runtime.LinuxRuntime.DIR}/tmp/.bl-clock").path)
ownVsyncThread = SessionPrefs.vsyncThread(context)
WaylandCompositor.nativeSetRenderOnCommit(SessionPrefs.renderOnCommit(context))
pace(refreshHz, fpsLimit)
@@ -135,7 +136,9 @@ object CompositorHost {
vsyncRunning = false
}
@Synchronized
fun newSession() {
WaylandCompositor.nativeSetClockControl(null)
if (started) WaylandCompositor.nativeResetFirstFrame()
}
@@ -178,6 +178,8 @@ public final class WaylandCompositor {
public static native void nativeVsync(long frameTimeNanos);
public static native void nativeSetClockControl(String path);
public static native int nativeCompositorTid();
private static native String nativeCompositorFault();