Skip to content

Bring PS5 GTA6 to 120FPS with DLSS 5. An advanced Windows video player and capture enhancement tool featuring real-time preview for videos, images, and capture card sources. Combine AI-powered Super Resolution, DLSS5 image enhancement, and Frame Generation to deliver a next-generation visual experience.

C++

fix(ui): stop idle UI redraws so OBS game capture captures the video again

Veyra Goal Agentf4f0150b4a26
diff --git a/apps/veyra-qml/main.cpp b/apps/veyra-qml/main.cpp
index 3a4e0564..2b55e20a 100644
--- a/apps/veyra-qml/main.cpp
+++ b/apps/veyra-qml/main.cpp
@@ -17,6 +17,7 @@
#include <QQuickWindow>
#include <QKeyEvent>
#include <QTimer>
+#include <atomic>
#include <QPointer>
#include <QVariantMap>
#include <QList>
@@ -697,6 +698,21 @@ int main(int argc, char** argv) {
// The first frame may come before the page layout settles; one pass after the
// event loop starts covers a scene that then never animates.
QTimer::singleShot(0, &app, follow);
+ // How often the Qt windows present. OBS game capture locks onto one swapchain and only
+ // moves to another after 16 presents in a row from it, so a UI that keeps presenting
+ // during playback keeps OBS on the UI instead of the video (field report 2026-10-01).
+ {
+ static std::atomic<int> mainFrames{0}, barFrames{0};
+ QObject::connect(window, &QQuickWindow::frameSwapped, &app, [] { ++mainFrames; }, Qt::DirectConnection);
+ if (auto* bar = window->findChild<QQuickWindow*>(QStringLiteral("fullscreenBar")))
+ QObject::connect(bar, &QQuickWindow::frameSwapped, &app, [] { ++barFrames; }, Qt::DirectConnection);
+ auto* frameLog = new QTimer(&app);
+ QObject::connect(frameLog, &QTimer::timeout, &app, [] {
+ const int m = mainFrames.exchange(0), b = barFrames.exchange(0);
+ if (m || b) veyra::log::info("qml-frames", std::format("ui presents per 10 s: main={} controlBar={}", m, b));
+ });
+ frameLog->start(10000);
+ }
// Test only: VEYRA_TEST_DPI_FLIP=<ms> sends the window the WM_DPICHANGED a move to a
// 150 % screen would, then back to 100 % three seconds later, so the screen-change
// crash (field report 2026-10-01, two monitors) can be reproduced on one monitor.
diff --git a/qml/Veyra/CineBar.qml b/qml/Veyra/CineBar.qml
index 64ef92f5..31fde799 100644
--- a/qml/Veyra/CineBar.qml
+++ b/qml/Veyra/CineBar.qml
@@ -196,7 +196,15 @@ Rectangle {
property real scrubFrac: 0
// .seek:hover .thumb { left: 44% } - the thumb tracks the real
// progress, not the design's hard-coded 44%.
- readonly property real frac: scrubbing ? scrubFrac : Math.max(0, Math.min(1, veyra.progress))
+ readonly property real frac: scrubbing ? scrubFrac : Math.max(0, Math.min(1, shownProgress))
+ // Twice a second, not every snapshot: the pill is its own window and a rail
+ // that moved every tick made it present ~50 times a second, more often than
+ // a film plays, so OBS game capture could lock onto the pill.
+ property real shownProgress: veyra.progress
+ Timer {
+ interval: 500; repeat: true; running: bar.visible
+ onTriggered: seekArea.shownProgress = veyra.progress
+ }
readonly property real hoverFrac: scrubbing ? scrubFrac
: seekMouse.containsMouse && seekArea.width > 0
? Math.max(0, Math.min(1, seekMouse.mouseX / seekArea.width))
@@ -323,6 +331,7 @@ Rectangle {
onReleased: mouse => {
const target = seekArea.fractionAt(mouse.x) * veyra.duration
scrubSeek.stop()
+ seekArea.shownProgress = seekArea.fractionAt(mouse.x)
seekArea.scrubbing = false
veyra.logUi("ui-seek", "targetSeconds=" + target.toFixed(3))
veyra.seekTo(target)
diff --git a/qml/Veyra/DialogHost.qml b/qml/Veyra/DialogHost.qml
index 8b685c43..ff098114 100644
--- a/qml/Veyra/DialogHost.qml
+++ b/qml/Veyra/DialogHost.qml
@@ -85,6 +85,10 @@ Item {
}
opacity: shown ? 1 : 0
visible: opacity > 0
+ // A closed dialog leaves the scene. Its live bindings (capture preview, fps text)
+ // kept changing while hidden and Qt redrew the window for each change, ~40 times
+ // a second during capture; OBS game capture then held the UI instead of the video.
+ parent: visible ? host : null
Behavior on opacity { NumberAnimation { duration: Theme.d(200) } }
transform: [
Scale { origin.x: dlg.width / 2; origin.y: dlg.height / 2; xScale: dlg.motionS; yScale: dlg.motionS },
@@ -96,7 +100,9 @@ Item {
readonly property bool videoCover: true
property real coverRadius: 16
- anchors.centerIn: parent
+ // Centred by position, not anchors: the parent is null while closed.
+ x: Math.round((host.width - width) / 2)
+ y: Math.round((host.height - height) / 2)
width: dialogWidth
// Never taller than the window: the body scrolls instead of the panel
// being cut off at the top and bottom of a small window.
diff --git a/qml/Veyra/HomePage.qml b/qml/Veyra/HomePage.qml
index 4fc1d82c..2b426e79 100644
--- a/qml/Veyra/HomePage.qml
+++ b/qml/Veyra/HomePage.qml
@@ -31,8 +31,11 @@ VPage {
implicitHeight: logoImg.implicitHeight + 80
property real breath: 0
scale: 1 + 0.02 * breath
+ // Only while the home page shows: running behind other pages it redrew the whole
+ // window every vsync during playback (~300 presents/s on a 320 Hz screen), which
+ // cost GPU time and kept OBS game capture on the UI instead of the video.
SequentialAnimation on breath {
- running: !Theme.reduced
+ running: !Theme.reduced && mark.visible
loops: Animation.Infinite
NumberAnimation { to: 1; duration: Theme.d(2250); easing.type: Easing.InOutSine }
NumberAnimation { to: 0; duration: Theme.d(2250); easing.type: Easing.InOutSine }
diff --git a/qml/Veyra/Main.qml b/qml/Veyra/Main.qml
index ba5e1644..f886d9df 100644
--- a/qml/Veyra/Main.qml
+++ b/qml/Veyra/Main.qml
@@ -157,11 +157,13 @@ Window {
}
// The page on screen (entering or settled) and the one sinking out.
property string shownPage: "home"
+ readonly property var pageItems: [homePage, minPage, proPage, nodePage, exportPage, settingsPage]
property string leavingPage: ""
function showPage(animated) {
shownPage = page
if (animated)
- for (const p of pages.children) if (p.pageId === page) p.enter()
+ // By list, not pages.children: hidden pages are out of the scene (VPage.home).
+ for (const p of root.pageItems) if (p.pageId === page) p.enter()
// The video rect follows the page, and it must be settled before the
// engine opens anything: it samples the window's client size once. It moves
// here, once, not at the click: the native window cannot fade with the pages.
@@ -245,10 +247,11 @@ Window {
visible: !root.fullscreen || root.page === "home" || root.page === "set" || root.quickPanelShown
// Each page is shown while current or while sinking out; the sinking one
// takes no input (.page.leave { pointer-events: none }).
- HomePage { pageId: "home"; onRequestPage: p => root.goPage(p) }
+ HomePage { id: homePage; pageId: "home"; home: pages; onRequestPage: p => root.goPage(p) }
MinimalPage {
id: minPage
pageId: "min"
+ home: pages
onRequestPage: p => root.goPage(p)
onRequestAspect: aspect => { if (root.testAspect <= 0) root.fitToFilm(aspect) }
onRequestFullscreen: root.toggleFullscreen()
@@ -256,13 +259,16 @@ Window {
ProPage {
id: proPage
pageId: "pro"
+ home: pages
overlay: root.quickPanelShown
onRequestFullscreen: root.toggleFullscreen()
onRequestPage: p => root.goPage(p)
onRequestDialog: key => dialogs.open(key)
}
NodePage {
+ id: nodePage
pageId: "node"
+ home: pages
videoHeight: root.nodeVideoHeight
onVideoHeightEdited: h => { root.nodeVideoHeight = h; videoHost.syncRect() }
onRequestFullscreen: root.toggleFullscreen()
@@ -276,8 +282,8 @@ Window {
root.page = "pro"
}
}
- ExportPage { pageId: "exp"; onRequestPage: p => root.goPage(p) }
- SettingsPage { pageId: "set"; onRequestPage: p => root.goPage(p) }
+ ExportPage { id: exportPage; pageId: "exp"; home: pages; onRequestPage: p => root.goPage(p) }
+ SettingsPage { id: settingsPage; pageId: "set"; home: pages; onRequestPage: p => root.goPage(p) }
}
// The five dialogs sit above the pages and below the dock's own tooltips.
diff --git a/qml/Veyra/NodePage.qml b/qml/Veyra/NodePage.qml
index 53ef47fd..73171422 100644
--- a/qml/Veyra/NodePage.qml
+++ b/qml/Veyra/NodePage.qml
@@ -952,7 +952,7 @@ VPage {
width: timingStrip.widthOf(modelData)
radius: 4
color: modelData.measured ? modelData.color : Qt.rgba(1, 1, 1, 0.12)
- Behavior on width { NumberAnimation { duration: Theme.d(600); easing.bezierCurve: Theme.springSoft } }
+ Behavior on width { enabled: visible; NumberAnimation { duration: Theme.d(600); easing.bezierCurve: Theme.springSoft } }
Text {
anchors.centerIn: parent
width: parent.width - 6
diff --git a/qml/Veyra/ProPage.qml b/qml/Veyra/ProPage.qml
index aa2c9d28..32263fba 100644
--- a/qml/Veyra/ProPage.qml
+++ b/qml/Veyra/ProPage.qml
@@ -176,7 +176,9 @@ VPage {
implicitWidth: Math.max(size, labelText.implicitWidth)
implicitHeight: showLabel ? size + 4 + labelText.implicitHeight : size
property real shown: known ? Math.min(1, Math.max(0, fraction)) : 0
- Behavior on shown { NumberAnimation { duration: Theme.d(600); easing.bezierCurve: Theme.springSoft } }
+ // Live data changes every second; animating it behind another page redrew the
+ // window continuously (see VDot.qml), so only while shown.
+ Behavior on shown { enabled: orb.visible; NumberAnimation { duration: Theme.d(600); easing.bezierCurve: Theme.springSoft } }
onShownChanged: ring.requestPaint()
onToneChanged: ring.requestPaint()
Canvas {
@@ -277,7 +279,7 @@ VPage {
radius: 2
color: light.tone
opacity: veyra.runStatusLevel === "idle" ? 0.35 : 0.9
- Behavior on color { ColorAnimation { duration: Theme.d(300) } }
+ Behavior on color { enabled: strip.visible; ColorAnimation { duration: Theme.d(300) } }
}
// A sibling MultiEffect, not layer.effect: Qt recreates a layer's effect item on
// a screen DPI change while it walks the parent's children, and the walk then touched
@@ -741,7 +743,7 @@ VPage {
height: parent.height
radius: 9
color: modelData.color
- Behavior on width { SequentialAnimation {
+ Behavior on width { enabled: stageRow.visible; SequentialAnimation {
PauseAnimation { duration: root.barsSettled ? 0 : Theme.d(120 + stageRow.index * 60) }
NumberAnimation { duration: Theme.d(800); easing.bezierCurve: Theme.springSoft } } }
}
diff --git a/qml/Veyra/VDot.qml b/qml/Veyra/VDot.qml
index 79ad8881..7f312b1c 100644
--- a/qml/Veyra/VDot.qml
+++ b/qml/Veyra/VDot.qml
@@ -2,6 +2,7 @@ import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
Rectangle {
+ id: dot
property bool warn: false
property bool err: false
property bool off: false
@@ -17,7 +18,11 @@ Rectangle {
}
// .dot.warn { animation: pulse 1.2s infinite }
SequentialAnimation on opacity {
- running: warn && !Theme.reduced
+ // Only while shown: the dock's export badge is a warn dot that is hidden until an
+ // export runs, and its pulse kept the window redrawing every vsync (OBS game
+ // capture then held the UI instead of the video).
+ running: warn && visible && !Theme.reduced
+ onRunningChanged: if (!running) dot.opacity = 1
loops: Animation.Infinite
// @keyframes pulse { 50% { opacity: .35 } } with ease-in-out per half.
NumberAnimation { to: 0.35; duration: Theme.d(600); easing.bezierCurve: [0.42, 0, 0.58, 1, 1, 1] }
diff --git a/qml/Veyra/VPage.qml b/qml/Veyra/VPage.qml
index 1bbfb4cd..dff737ee 100644
--- a/qml/Veyra/VPage.qml
+++ b/qml/Veyra/VPage.qml
@@ -10,10 +10,17 @@ Item {
id: page
property string pageId
signal enter()
- readonly property var shell: Window.window
+ // The item the page sits in (Main.qml's page stack). A page that is neither shown nor
+ // sinking out leaves the scene: its live bindings kept changing while hidden and Qt
+ // redrew the whole window for each change (~11 times a second during capture), which
+ // cost GPU time and kept OBS game capture on the UI instead of the video.
+ property Item home: null
+ parent: (current || leaving) ? home : null
+ readonly property var shell: home ? home.Window.window : null
readonly property bool current: shell !== null && shell.shownPage === pageId
readonly property bool leaving: shell !== null && shell.leavingPage === pageId
- anchors.fill: parent
+ width: home ? home.width : 0
+ height: home ? home.height : 0
visible: current || leaving
enabled: current
opacity: leaving ? 1 - shell.leaveT : 1
diff --git a/scripts/ui-check/capture-hold.qml b/scripts/ui-check/capture-hold.qml
new file mode 100644
index 00000000..24113a0e
--- /dev/null
+++ b/scripts/ui-check/capture-hold.qml
@@ -0,0 +1,13 @@
+
+ // ---- capture card running in 极简 for 70 s (external OBS game-capture check) -----------
+ Timer { interval: 150; running: true; repeat: true; onTriggered: veyra.logUi("uitest-tick", "") }
+ Timer {
+ interval: 1000; running: true; repeat: true
+ property int ticks: 0
+ onTriggered: {
+ ++ticks
+ if (ticks === 2) dialogs.open("capture")
+ if (ticks === 5) { veyra.startCaptureSession(); dialogs.close() }
+ if (ticks === 75) { veyra.logUi("uitest", "UITEST_DONE"); running = false }
+ }
+ }
diff --git a/scripts/ui-check/capture-present.qml b/scripts/ui-check/capture-present.qml
new file mode 100644
index 00000000..ec1a99c6
--- /dev/null
+++ b/scripts/ui-check/capture-present.qml
@@ -0,0 +1,21 @@
+
+ // ---- live capture: UI presents vs video, pages detached; node page survives a round trip --
+ property int uiFrames: 0
+ Connections { target: root; function onFrameSwapped() { root.uiFrames += 1 } }
+ Timer { interval: 150; running: true; repeat: true; onTriggered: veyra.logUi("uitest-tick", "") }
+ Timer {
+ interval: 3000; running: true; repeat: true
+ property int phase: 0
+ onTriggered: {
+ veyra.logUi("uitest", "UITEST_NOTE phase " + phase + " page=" + root.page + " uiFrames/3s=" + root.uiFrames + " captureFps=" + veyra.captureFps.toFixed(1))
+ root.uiFrames = 0
+ phase += 1
+ if (phase === 1) dialogs.open("capture")
+ if (phase === 2) { veyra.startCaptureSession(); dialogs.close() }
+ if (phase === 6) root.goPage("node")
+ if (phase === 7) { veyra.logUi("uitest", "UITEST_SHOT node-1"); root.goPage("min") }
+ if (phase === 8) root.goPage("node")
+ if (phase === 9) { veyra.logUi("uitest", "UITEST_SHOT node-2"); root.goPage("min") }
+ if (phase === 12) { veyra.logUi("uitest", "UITEST_DONE"); running = false }
+ }
+ }
diff --git a/scripts/ui-check/node-roundtrip.qml b/scripts/ui-check/node-roundtrip.qml
new file mode 100644
index 00000000..a080de6d
--- /dev/null
+++ b/scripts/ui-check/node-roundtrip.qml
@@ -0,0 +1,18 @@
+
+ // ---- node page after leaving and re-entering the scene (VPage.home) --------------------
+ Timer { interval: 150; running: true; repeat: true; onTriggered: veyra.logUi("uitest-tick", "") }
+ Timer {
+ interval: 2500; running: true; repeat: true
+ property int phase: 0
+ onTriggered: {
+ phase += 1
+ if (phase === 1) root.goPage("node")
+ if (phase === 2) veyra.logUi("uitest", "UITEST_SHOT node-first")
+ if (phase === 3) root.goPage("min")
+ if (phase === 4) root.goPage("node")
+ if (phase === 5) veyra.logUi("uitest", "UITEST_SHOT node-again")
+ if (phase === 6) root.goPage("pro")
+ if (phase === 7) veyra.logUi("uitest", "UITEST_SHOT pro-again")
+ if (phase === 8) { veyra.logUi("uitest", "UITEST_DONE"); running = false }
+ }
+ }
diff --git a/scripts/ui-check/present-bisect.qml b/scripts/ui-check/present-bisect.qml
new file mode 100644
index 00000000..d48894c5
--- /dev/null
+++ b/scripts/ui-check/present-bisect.qml
@@ -0,0 +1,21 @@
+
+ // ---- which part of the scene keeps the main window presenting --------------------------
+ property int uiFrames: 0
+ Connections { target: root; function onFrameSwapped() { root.uiFrames += 1 } }
+ Timer { interval: 150; running: true; repeat: true; onTriggered: veyra.logUi("uitest-tick", "") }
+ Timer {
+ interval: 3000; running: true; repeat: true
+ property int phase: 0
+ onTriggered: {
+ veyra.logUi("uitest", "UITEST_NOTE phase " + phase + " frames/3s=" + root.uiFrames)
+ root.uiFrames = 0
+ phase += 1
+ if (phase === 2) pages.visible = false
+ if (phase === 3) dock.visible = false
+ if (phase === 4) backdrop.visible = false
+ if (phase === 5) dialogs.visible = false
+ if (phase === 6) { for (const c of root.contentItem.children) if (c.objectName.indexOf("window-resize") === 0) c.visible = false }
+ if (phase === 7) root.contentItem.visible = false
+ if (phase === 8) { veyra.logUi("uitest", "UITEST_DONE"); running = false }
+ }
+ }
diff --git a/scripts/ui-check/present-capture-bisect.qml b/scripts/ui-check/present-capture-bisect.qml
new file mode 100644
index 00000000..0eae3a41
--- /dev/null
+++ b/scripts/ui-check/present-capture-bisect.qml
@@ -0,0 +1,21 @@
+
+ // ---- which page keeps presenting during playback ---------------------------------------
+ property int uiFrames: 0
+ Connections { target: root; function onFrameSwapped() { root.uiFrames += 1 } }
+ Timer { interval: 150; running: true; repeat: true; onTriggered: veyra.logUi("uitest-tick", "") }
+ Timer {
+ interval: 3000; running: true; repeat: true
+ property int phase: 0
+ onTriggered: {
+ veyra.logUi("uitest", "UITEST_NOTE phase " + phase + " frames/3s=" + root.uiFrames)
+ root.uiFrames = 0
+ phase += 1
+ if (phase === 1) { dialogs.open("capture") }
+ if (phase === 2) { veyra.startCaptureSession(); dialogs.close() }
+ if (phase === 5) minPage.parent = null
+ if (phase === 6) dialogs.parent = null
+ if (phase === 7) { streamHud.parent = null; toast.parent = null }
+ if (phase === 8) root.contentItem.visible = false
+ if (phase === 10) { veyra.logUi("uitest", "UITEST_DONE"); running = false }
+ }
+ }
diff --git a/scripts/ui-check/present-capture-bisect2.qml b/scripts/ui-check/present-capture-bisect2.qml
new file mode 100644
index 00000000..c6e56657
--- /dev/null
+++ b/scripts/ui-check/present-capture-bisect2.qml
@@ -0,0 +1,21 @@
+
+ // ---- which page keeps presenting during playback ---------------------------------------
+ property int uiFrames: 0
+ Connections { target: root; function onFrameSwapped() { root.uiFrames += 1 } }
+ Timer { interval: 150; running: true; repeat: true; onTriggered: veyra.logUi("uitest-tick", "") }
+ Timer {
+ interval: 3000; running: true; repeat: true
+ property int phase: 0
+ onTriggered: {
+ veyra.logUi("uitest", "UITEST_NOTE phase " + phase + " frames/3s=" + root.uiFrames)
+ root.uiFrames = 0
+ phase += 1
+ if (phase === 1) { dialogs.open("capture") }
+ if (phase === 2) { veyra.startCaptureSession(); dialogs.close() }
+ if (phase === 5) pages.parent = null
+ if (phase === 6) dock.parent = null
+ if (phase === 7) { streamHud.parent = null; toast.parent = null }
+ if (phase === 8) root.contentItem.visible = false
+ if (phase === 10) { veyra.logUi("uitest", "UITEST_DONE"); running = false }
+ }
+ }
diff --git a/scripts/ui-check/present-idle-long.qml b/scripts/ui-check/present-idle-long.qml
new file mode 100644
index 00000000..f95da4f4
--- /dev/null
+++ b/scripts/ui-check/present-idle-long.qml
@@ -0,0 +1,21 @@
+
+ // ---- which part of the scene keeps the main window presenting --------------------------
+ property int uiFrames: 0
+ Connections { target: root; function onFrameSwapped() { root.uiFrames += 1 } }
+ Timer { interval: 150; running: true; repeat: true; onTriggered: veyra.logUi("uitest-tick", "") }
+ Timer {
+ interval: 3000; running: true; repeat: true
+ property int phase: 0
+ onTriggered: {
+ veyra.logUi("uitest", "UITEST_NOTE phase " + phase + " frames/3s=" + root.uiFrames)
+ root.uiFrames = 0
+ phase += 1
+ if (phase === 99) pages.visible = false
+ if (phase === 98) dock.visible = false
+ if (phase === 97) backdrop.visible = false
+ if (phase === 96) dialogs.visible = false
+ if (phase === 95) { for (const c of root.contentItem.children) if (c.objectName.indexOf("window-resize") === 0) c.visible = false }
+ if (phase === 94) root.contentItem.visible = false
+ if (phase === 10) { veyra.logUi("uitest", "UITEST_DONE"); running = false }
+ }
+ }
diff --git a/scripts/ui-check/present-play-bisect.qml b/scripts/ui-check/present-play-bisect.qml
new file mode 100644
index 00000000..ab24b3d0
--- /dev/null
+++ b/scripts/ui-check/present-play-bisect.qml
@@ -0,0 +1,20 @@
+
+ // ---- which page keeps presenting during playback ---------------------------------------
+ property int uiFrames: 0
+ Connections { target: root; function onFrameSwapped() { root.uiFrames += 1 } }
+ Timer { interval: 150; running: true; repeat: true; onTriggered: veyra.logUi("uitest-tick", "") }
+ Timer {
+ interval: 3000; running: true; repeat: true
+ property int phase: 0
+ onTriggered: {
+ veyra.logUi("uitest", "UITEST_NOTE phase " + phase + " frames/3s=" + root.uiFrames)
+ root.uiFrames = 0
+ phase += 1
+ if (phase === 1) veyra.openUrl("@VIDEO@")
+ if (phase === 3) proPage.parent = null
+ if (phase === 4) { for (const p of pages.children) if (p.pageId === "node") p.parent = null }
+ if (phase === 5) { for (const p of pages.children) if (p.pageId === "exp" || p.pageId === "set" || p.pageId === "home") p.parent = null }
+ if (phase === 6) dock.visible = false
+ if (phase === 8) { veyra.logUi("uitest", "UITEST_DONE"); running = false }
+ }
+ }
diff --git a/scripts/ui-check/present-rate-idle.qml b/scripts/ui-check/present-rate-idle.qml
new file mode 100644
index 00000000..8ed8c437
--- /dev/null
+++ b/scripts/ui-check/present-rate-idle.qml
@@ -0,0 +1,14 @@
+
+ // ---- UI present rate: idle 极简 (12 s), then a paused video (12 s) ----------------------
+ Timer { interval: 150; running: true; repeat: true; onTriggered: veyra.logUi("uitest-tick", "") }
+ Timer {
+ interval: 250; running: true; repeat: true
+ property int ticks: 0
+ onTriggered: {
+ ++ticks
+ if (ticks === 2) veyra.logUi("uitest", "UITEST_NOTE phase idle")
+ if (ticks === 50) veyra.openUrl("@VIDEO@")
+ if (ticks === 58) { veyra.togglePlayPause(); veyra.logUi("uitest", "UITEST_NOTE phase paused") }
+ if (ticks === 110) { veyra.logUi("uitest", "UITEST_DONE"); running = false }
+ }
+ }
diff --git a/scripts/ui-check/present-rate.qml b/scripts/ui-check/present-rate.qml
new file mode 100644
index 00000000..bbb9da75
--- /dev/null
+++ b/scripts/ui-check/present-rate.qml
@@ -0,0 +1,13 @@
+
+ // ---- UI present rate during playback (OBS game capture, field 2026-10-01) ---------------
+ // Plays a file in 极简 for 25 s; [qml-frames] lines show how often the Qt windows present.
+ Timer { interval: 150; running: true; repeat: true; onTriggered: veyra.logUi("uitest-tick", "") }
+ Timer {
+ interval: 250; running: true; repeat: true
+ property int ticks: 0
+ onTriggered: {
+ ++ticks
+ if (ticks === 4) veyra.openUrl("@VIDEO@")
+ if (ticks === 110) { veyra.logUi("uitest", "UITEST_DONE"); running = false }
+ }
+ }