mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-06 19:20:45 +00:00
Enable multithreaded loader by default on multicore machines
This commit is contained in:
parent
1b2508b0ec
commit
842222c386
@ -123,7 +123,10 @@ MainWindow::MainWindow(QWidget *parent) :
|
|||||||
ui->logText->hide();
|
ui->logText->hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!pref.Exists("EnableMultithreading")) pref["EnableMultithreading"]=false;
|
bool usethreading=QThread::idealThreadCount()>1;
|
||||||
|
|
||||||
|
// This speeds up the second part of importing craploads.. later it will speed up the first part too.
|
||||||
|
if (!pref.Exists("EnableMultithreading")) pref["EnableMultithreading"]=usethreading;
|
||||||
ui->actionEnable_Multithreading->setChecked(pref["EnableMultithreading"].toBool());
|
ui->actionEnable_Multithreading->setChecked(pref["EnableMultithreading"].toBool());
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user