Skip to content

Commit cf27e33

Browse files
committed
Remove deferred accurate crop preview logic
1 parent e82d913 commit cf27e33

1 file changed

Lines changed: 0 additions & 24 deletions

File tree

apps/desktop/src/routes/editor/Editor.tsx

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ const MIN_PLAYER_CONTENT_HEIGHT = 320;
6060
const MIN_TIMELINE_HEIGHT = 240;
6161
const RESIZE_HANDLE_HEIGHT = 16;
6262
const MIN_PLAYER_HEIGHT = MIN_PLAYER_CONTENT_HEIGHT + RESIZE_HANDLE_HEIGHT;
63-
const ACCURATE_CROP_PREVIEW_MAX_DURATION = 15 * 60;
64-
6563
const TIMELINE_RESIZE_GRIP_MARKS = [0, 1, 2] as const;
6664

6765
function logCropProfile(
@@ -949,28 +947,6 @@ function Dialogs() {
949947
),
950948
});
951949

952-
if (
953-
editorInstance.recordingDuration >
954-
ACCURATE_CROP_PREVIEW_MAX_DURATION &&
955-
initialPreviewUrl
956-
) {
957-
logCropProfile("accurate-frame-deferred", {
958-
elapsedMs: Number(
959-
(performance.now() - cropOpenedAt).toFixed(2),
960-
),
961-
recordingDurationSec: Math.round(
962-
editorInstance.recordingDuration,
963-
),
964-
reason: "current-preview-available",
965-
});
966-
scheduleAccurateFrame("deferred-long-recording", {
967-
delayMs: 2000,
968-
idleTimeoutMs: 500,
969-
fallbackDelayMs: 0,
970-
});
971-
return;
972-
}
973-
974950
scheduleAccurateFrame("immediate", {
975951
idleTimeoutMs: 500,
976952
fallbackDelayMs: 16,

0 commit comments

Comments
 (0)