Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.8
-
None
-
windows 11, visual studio 2022, computer with 20 logical cores, edge or chrome
-
-
1a57c3866 (dev), 18c4841ec (6.7), 772531c8a (tqtc/lts-6.5)
Description
QCoreApplication sets QThreadPrivate::idealThreadCount to navigator.hardwareConcurrency
wasm.prf sets PTHREAD_POOL_SIZE to 4.
This causes the qtdoc/examples/demos/dice example to not start.
Adding
QT_WASM_PTHREAD_POOL_SIZE=navigator.hardwareConcurrency+2
and
set(QT_WASM_PTHREAD_POOL_SIZE navigator.hardwareConcurrency+2)
to dice.pro/CMakeLists.txt fixes the dice demo