remove Comfy.Minimap.RefreshDelay

This commit is contained in:
Terry Jia
2025-07-21 10:39:59 -04:00
parent 09088c773a
commit f3def8373a
3 changed files with 2 additions and 13 deletions

View File

@@ -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

View File

@@ -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)',

View File

@@ -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(),