make UI look snappier than it is on (by making loading less noticable)
This commit is contained in:
3 files changed
+38
-2
No files matched your search
@@ -44,7 +44,7 @@ QVector<int> ChunkMeasurer::measure(const QStringList &chunks, qreal textWidth)
|
||||
|
||||
QVector<int> heights(n, 0);
|
||||
QAtomicInt nextIdx(0);
|
||||
const int threadCount = QThread::idealThreadCount();
|
||||
const int threadCount = 2;
|
||||
|
||||
// Capture by value what each worker needs (no shared mutable state)
|
||||
auto worker = [&]() {
|
||||
|
||||
Reference in new issue
Block a user