Skip to content

Commit

Permalink
Set the upper limit of the render threads slider to the number of log…
Browse files Browse the repository at this point in the history
…ical cores (#1616)
  • Loading branch information
JustinTimeCuber authored Aug 20, 2023
1 parent 9aa7374 commit 35960b4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public PictureExportFormat fromString(String string) {
});
renderThreads.setName("Render threads");
renderThreads.setTooltip("Number of rendering threads.");
renderThreads.setRange(1, 20);
renderThreads.setRange(1, Runtime.getRuntime().availableProcessors());
renderThreads.clampMin();
renderThreads.onValueChange(value -> {
PersistentSettings.setNumRenderThreads(value);
Expand Down

0 comments on commit 35960b4

Please sign in to comment.