From ac8c5386a99a3ccd7d8fdda9bedf80bbcc0ab5c2 Mon Sep 17 00:00:00 2001 From: Stuart Buchanan Date: Mon, 30 Jan 2023 23:03:58 +0000 Subject: [PATCH] Default loading threads to 4 with 0 HTTP-dedicated --- src/Main/fg_init.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Main/fg_init.cxx b/src/Main/fg_init.cxx index 2a950c33f..d02f4abfe 100755 --- a/src/Main/fg_init.cxx +++ b/src/Main/fg_init.cxx @@ -1435,7 +1435,7 @@ void fgStartNewReset() sgUserDataInit( globals->get_props() ); - unsigned int numDBPagerThreads = fgGetNode("/sim/rendering/database-pager/threads", true)->getIntValue(2); + unsigned int numDBPagerThreads = fgGetNode("/sim/rendering/database-pager/threads", true)->getIntValue(4); if (composite_viewer) { composite_viewer_view->setDatabasePager(FGScenery::getPagerSingleton()); @@ -1450,7 +1450,7 @@ void fgStartNewReset() composite_viewer->startThreading(); } else { - viewer->getDatabasePager()->setUpThreads(numDBPagerThreads, 1); + viewer->getDatabasePager()->setUpThreads(numDBPagerThreads, 0); viewer->getDatabasePager()->setAcceptNewDatabaseRequests(true); // must do this before preinit for Rembrandthe flightgear::CameraGroup::buildDefaultGroup(viewer.get());