External Publication
Visit Post

Platform Development • Re: The browser hang with 0 CPU load.

Pale Moon forum - Forum index [Unofficial] April 30, 2026
Source

Reverted the changes and ended up doing it this way, which should work fine on all hardware:

CODE:

static size_tThreadCountForCPUCount(size_t cpuCount){ // Create additional threads on top of the number of cores available, to // provide some excess capacity in case threads pause each other. // Note that cpuCount here is the number of logical processors and threadCount // calculated here just adds some extra capacity on top. Use threadCount // with care as it may end up deadlocking. static const uint32_t EXCESS_THREADS = 4; return cpuCount + EXCESS_THREADS;}

Variable "threadCount" is used in other places to determine load distribution. There will be the same logic of “overloading” small processors and “underloading” large ones. It might be worth changing the calculation for allocating “additional load (extra capacity)”?


Discussion in the ATmosphere

Loading comments...