File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
SerialPrograms/Source/CommonFramework Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -250,6 +250,14 @@ void ParallelTaskRunnerCore::run_in_parallel(
250250 return ;
251251 }
252252 size_t total = end - start;
253+
254+ if (block_size == 0 ){
255+ block_size = total / m_max_threads / 2 ;
256+ if (block_size == 0 ){
257+ block_size = 1 ;
258+ }
259+ }
260+
253261 size_t blocks = (total + block_size - 1 ) / block_size;
254262
255263 std::vector<std::unique_ptr<AsyncTask>> tasks;
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ namespace PokemonAutomation{
2626const bool IS_BETA_VERSION = true ;
2727const int PROGRAM_VERSION_MAJOR = 0 ;
2828const int PROGRAM_VERSION_MINOR = 54 ;
29- const int PROGRAM_VERSION_PATCH = 10 ;
29+ const int PROGRAM_VERSION_PATCH = 11 ;
3030
3131const std::string PROGRAM_VERSION_BASE =
3232 " v" + std::to_string(PROGRAM_VERSION_MAJOR) +
You can’t perform that action at this time.
0 commit comments