Skip to content

Commit

Permalink
"I want other hash options!"
Browse files Browse the repository at this point in the history
  • Loading branch information
fohristiwhirl committed Mar 17, 2021
1 parent 7d3b086 commit b694bdc
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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);
}
}
]
},
{
Expand Down
5 changes: 5 additions & 0 deletions src/modules/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit b694bdc

Please sign in to comment.