Update raphael (now threaded and loggable)
This commit is contained in:
@@ -534,6 +534,22 @@ public sealed class Settings : Window, IDisposable
|
||||
disableOptimal ? [SolverAlgorithm.Raphael] : []
|
||||
);
|
||||
|
||||
using (ImRaii.Disabled(config.Algorithm is not (SolverAlgorithm.OneshotForked or SolverAlgorithm.StepwiseForked or SolverAlgorithm.StepwiseGenetic or SolverAlgorithm.Raphael)))
|
||||
DrawOption(
|
||||
"Max Core Count",
|
||||
"The number of cores to use when solving. You should use as many " +
|
||||
"as you can. If it's too high, it will have an effect on your gameplay " +
|
||||
$"experience. A good estimate would be 1 or 2 cores less than your " +
|
||||
$"system (FYI, you have {Environment.ProcessorCount} cores), but make sure to accomodate " +
|
||||
$"for any other tasks you have in the background, if you have any.\n" +
|
||||
"(Only used in the Forked, Genetic, and Optimal algorithms)",
|
||||
config.MaxThreadCount,
|
||||
1,
|
||||
Environment.ProcessorCount,
|
||||
v => config = config with { MaxThreadCount = v },
|
||||
ref isDirty
|
||||
);
|
||||
|
||||
if (config.Algorithm != SolverAlgorithm.Raphael)
|
||||
{
|
||||
DrawOption(
|
||||
@@ -602,22 +618,6 @@ public sealed class Settings : Window, IDisposable
|
||||
ref isDirty
|
||||
);
|
||||
|
||||
using (ImRaii.Disabled(config.Algorithm is not (SolverAlgorithm.OneshotForked or SolverAlgorithm.StepwiseForked or SolverAlgorithm.StepwiseGenetic)))
|
||||
DrawOption(
|
||||
"Max Core Count",
|
||||
"The number of cores to use when solving. You should use as many " +
|
||||
"as you can. If it's too high, it will have an effect on your gameplay " +
|
||||
$"experience. A good estimate would be 1 or 2 cores less than your " +
|
||||
$"system (FYI, you have {Environment.ProcessorCount} cores), but make sure to accomodate " +
|
||||
$"for any other tasks you have in the background, if you have any.\n" +
|
||||
"(Only used in the Forked and Genetic algorithms)",
|
||||
config.MaxThreadCount,
|
||||
1,
|
||||
Environment.ProcessorCount,
|
||||
v => config = config with { MaxThreadCount = v },
|
||||
ref isDirty
|
||||
);
|
||||
|
||||
using (ImRaii.Disabled(config.Algorithm is not (SolverAlgorithm.OneshotForked or SolverAlgorithm.StepwiseForked or SolverAlgorithm.StepwiseGenetic)))
|
||||
DrawOption(
|
||||
"Fork Count",
|
||||
|
||||
@@ -36,8 +36,8 @@
|
||||
},
|
||||
"Raphael.Net": {
|
||||
"type": "Transitive",
|
||||
"resolved": "2.1.0",
|
||||
"contentHash": "MDXWh/jSuwTctU3lMs76jC37KY6mERCBIip4+hl4aqvuyxNkX8WOKyrr0fP0EiV3QHFWoQCn7wxWA9U1or78IA=="
|
||||
"resolved": "2.1.1",
|
||||
"contentHash": "4+7HyDa7lVokXObqv8ADeTgi74Cz7W99N07DYtzuOXEt6tJtMlJt8RxLGoPtakVf1mURDMuD5kDKw0oz3EaoDA=="
|
||||
},
|
||||
"System.IO.Hashing": {
|
||||
"type": "Transitive",
|
||||
@@ -52,15 +52,15 @@
|
||||
"dependencies": {
|
||||
"Craftimizer.Simulator": "[1.0.0, )",
|
||||
"DotNext": "[5.21.0, )",
|
||||
"Raphael.Net": "[2.1.0, )"
|
||||
"Raphael.Net": "[2.1.1, )"
|
||||
}
|
||||
}
|
||||
},
|
||||
"net9.0-windows7.0/win-x64": {
|
||||
"Raphael.Net": {
|
||||
"type": "Transitive",
|
||||
"resolved": "2.1.0",
|
||||
"contentHash": "MDXWh/jSuwTctU3lMs76jC37KY6mERCBIip4+hl4aqvuyxNkX8WOKyrr0fP0EiV3QHFWoQCn7wxWA9U1or78IA=="
|
||||
"resolved": "2.1.1",
|
||||
"contentHash": "4+7HyDa7lVokXObqv8ADeTgi74Cz7W99N07DYtzuOXEt6tJtMlJt8RxLGoPtakVf1mURDMuD5kDKw0oz3EaoDA=="
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user