1
0
Fork 0

Default loading threads to 4 with 0 HTTP-dedicated

This commit is contained in:
Stuart Buchanan 2023-01-30 23:03:58 +00:00
parent af8f71db40
commit ac8c5386a9

View file

@ -1435,7 +1435,7 @@ void fgStartNewReset()
sgUserDataInit( globals->get_props() ); 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) { if (composite_viewer) {
composite_viewer_view->setDatabasePager(FGScenery::getPagerSingleton()); composite_viewer_view->setDatabasePager(FGScenery::getPagerSingleton());
@ -1450,7 +1450,7 @@ void fgStartNewReset()
composite_viewer->startThreading(); composite_viewer->startThreading();
} }
else { else {
viewer->getDatabasePager()->setUpThreads(numDBPagerThreads, 1); viewer->getDatabasePager()->setUpThreads(numDBPagerThreads, 0);
viewer->getDatabasePager()->setAcceptNewDatabaseRequests(true); viewer->getDatabasePager()->setAcceptNewDatabaseRequests(true);
// must do this before preinit for Rembrandthe // must do this before preinit for Rembrandthe
flightgear::CameraGroup::buildDefaultGroup(viewer.get()); flightgear::CameraGroup::buildDefaultGroup(viewer.get());