Download
Can download it here.
What’s new
Add optimization code for Huawei devices. Engine will collect some information, such as node count, particle count, and use these information to determine if engine needs more power. If needs more power, such as speed up CPU frequency, then engine will report the information to system service, the system service will speed up the CPU frequency. The system service only exists on Huawei devices that provide the system service. It has not effect on other devices.
When the system service detects the device is too hot, it will call back engine to slow down fps, minus particle count and may stop background music and effects.
If you don’t need the optimization, then you can disable it like this
public class AppActivity extends Cocos2dxActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
Cocos2dxEngineDataManager.disable(); // disable before `super.onCreate`
super.onCreate(savedInstanceState);
...
...
}
}