diff --git a/src/main.js b/src/main.js index 5a6ce823..6f043175 100644 --- a/src/main.js +++ b/src/main.js @@ -2886,6 +2886,18 @@ function menu_build() { // Will receive an ack IPC which sets menu checks. } }, + { + label: "20 GB", + type: "checkbox", + checked: config.options.Hash === 20 * 1024, + click: () => { + win.webContents.send("call", { + fn: "set_uci_option_permanent", + args: ["Hash", 20 * 1024] + }); + // Will receive an ack IPC which sets menu checks. + } + }, { label: "16 GB", type: "checkbox", @@ -2982,6 +2994,15 @@ function menu_build() { // Will receive an ack IPC which sets menu checks. } }, + { + type: "separator" + }, + { + label: "I want other hash options!", + click: () => { + alert(messages.about_hashes); + } + } ] }, { diff --git a/src/modules/messages.js b/src/modules/messages.js index bc02e657..869be5e6 100644 --- a/src/modules/messages.js +++ b/src/modules/messages.js @@ -63,6 +63,11 @@ exports.about_sizes = Nibbler's config file (which can be found via the Dev menu).`; +exports.about_hashes = +`You can set the Hash value directly via Nibbler's config file (which can be found via \ +the Dev menu).`; + + exports.thread_warning = `Note that, for systems using a GPU, 2 threads is usually sufficient, and increasing \ this number can actually make Leela weaker! More threads should probably only be used \