From f3def8373a64f08f2f4ec0e82ad7cee82ea32de1 Mon Sep 17 00:00:00 2001 From: Terry Jia Date: Mon, 21 Jul 2025 10:39:59 -0400 Subject: [PATCH] remove Comfy.Minimap.RefreshDelay --- src/composables/useMinimap.ts | 4 ++-- src/constants/coreSettings.ts | 10 ---------- src/schemas/apiSchema.ts | 1 - 3 files changed, 2 insertions(+), 13 deletions(-) diff --git a/src/composables/useMinimap.ts b/src/composables/useMinimap.ts index 0094a7946b..d812fc10d6 100644 --- a/src/composables/useMinimap.ts +++ b/src/composables/useMinimap.ts @@ -344,7 +344,7 @@ export function useMinimap() { if (structureChanged || positionChanged || connectionChanged) { updateMinimap() } - }, settingStore.get('Comfy.Minimap.RefreshDelay')) + }, 500) const { pause: pauseChangeDetection, resume: resumeChangeDetection } = useRafFn( @@ -458,7 +458,7 @@ export function useMinimap() { updateFlags.value.nodes = true updateFlags.value.connections = true updateMinimap() - }, settingStore.get('Comfy.Minimap.RefreshDelay')) + }, 500) const setupEventListeners = () => { const g = graph.value diff --git a/src/constants/coreSettings.ts b/src/constants/coreSettings.ts index 526d087c96..adf87338ac 100644 --- a/src/constants/coreSettings.ts +++ b/src/constants/coreSettings.ts @@ -819,16 +819,6 @@ export const CORE_SETTINGS: SettingParams[] = [ defaultValue: true, versionAdded: '1.24.1' }, - { - id: 'Comfy.Minimap.RefreshDelay', - category: ['LiteGraph', 'Canvas', 'MinimapRefreshDelay'], - name: 'Minimap refresh delay (ms)', - defaultValue: 256, - type: 'number', - tooltip: - 'The smaller the value, the smoother it will be, but it will consume more performance. After modification, you need to refresh the page for it to take effect.', - versionAdded: '1.24.1' - }, { id: 'Comfy.Workflow.AutoSaveDelay', name: 'Auto Save Delay (ms)', diff --git a/src/schemas/apiSchema.ts b/src/schemas/apiSchema.ts index ae6faf7cac..245576b198 100644 --- a/src/schemas/apiSchema.ts +++ b/src/schemas/apiSchema.ts @@ -458,7 +458,6 @@ const zSettings = z.object({ 'Comfy.InstalledVersion': z.string().nullable(), 'Comfy.Node.AllowImageSizeDraw': z.boolean(), 'Comfy.Minimap.Visible': z.boolean(), - 'Comfy.Minimap.RefreshDelay': z.number(), 'Comfy-Desktop.AutoUpdate': z.boolean(), 'Comfy-Desktop.SendStatistics': z.boolean(), 'Comfy-Desktop.WindowStyle': z.string(),