Add canvas maximum FPS setting (#1727)

* Add canvas maximum FPS setting

* Update litegraph

---------

Co-authored-by: huchenlei <huchenlei@proton.me>
This commit is contained in:
filtered
2024-11-29 03:46:54 +11:00
committed by GitHub
parent 05fab91bda
commit 578870d345
5 changed files with 28 additions and 8 deletions

View File

@@ -636,5 +636,18 @@ export const CORE_SETTINGS: SettingParams[] = [
},
defaultValue: 64,
versionAdded: '1.4.12'
},
{
id: 'LiteGraph.Canvas.MaximumFps',
name: 'Maxium FPS',
tooltip:
'The maximum frames per second that the canvas is allowed to render. Caps GPU usage at the cost of smoothness. If 0, the screen refresh rate is used. Default: 0',
type: 'slider',
attrs: {
min: 0,
max: 120
},
defaultValue: 0,
versionAdded: '1.5.1'
}
]