Skip to content

Commit

Permalink
change thread count to be the cpu count
Browse files Browse the repository at this point in the history
  • Loading branch information
dankmeme01 committed Aug 5, 2024
1 parent 4ea1be2 commit 98ec30e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/LoadingLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ static CCBMFontConfiguration* loadFontConfiguration(const char* name) {
#include <Geode/modify/LoadingLayer.hpp>
class $modify(MyLoadingLayer, LoadingLayer) {
struct Fields {
asp::ThreadPool threadPool{20};
asp::ThreadPool threadPool{std::thread::hardware_concurrency()};
bool finishedLoading = false;
std::chrono::high_resolution_clock::time_point startedLoadingGame;
std::chrono::high_resolution_clock::time_point startedLoadingAssets;
Expand Down

0 comments on commit 98ec30e

Please sign in to comment.