"platform-android-cpucapacity-threshold" command-line switch

Newly released Unity versions show a new improvement:

  • Android: Added boot-config/command-line switch “platform-android-cpucapacity-threshold” that can be used to specify which CPU cores are treated as big cores. The cpu capacity is a value in the range between 0 and 1024. A capacity value of 870 yields the same behavior as before the fix for case 1349057.

I’m not able to find any additional information about that feature nor the quoted case 1349057: is anybody from the Unity team able to provide some more insights?

Thanks

We are going to add documentation to this page: Unity - Manual: Android thread configuration.
The new setting platform-android-cpucapacity-threshold controls which cores Unity treats as big or little.
cpu-capacity is explained here: https://github.com/torvalds/linux/blob/master/Documentation/devicetree/bindings/arm/cpu-capacity.txt

Awesome, thank you!

Still detected only 1 big core + 7 little cores on my Snapdragon888 device. Should I use this command line to set the threshold, and How should I get the proper threshold value to correctly detect 1+3+4 cores?

The big core detection on Snapdragon 888 should be fixed without using this new parameter.
What‘s the version of Unity that you are using and what is the device?

Sorry it was my mistake. It worked well and detected 4+4 cores on snapdragon 888 (2019.4.31).

1 Like

The main reason why we added this new parameter is to allow users to tweak the behavior in the future when a new SoC comes out that doesn’t work well with the defaults.