Steps to reproduce:
- Create a new project
- Install the Adaptive Performance package (version 6.0.0) via the Package Manager (Window > Package Manager)
- Create a custom Scaler script:
- Inherit from “AdaptivePerformanceScaler”
- Set maxLevel = 10 in the constructor or initialization
- Override OnLevelChange or relevant methods to log current levels
- Register the custom Scaler with the AdaptivePerformanceIndexer
- Build and Run the Android Player
- Use a thermal simulation tool or run a heavy load until the AdaptivePerformanceIndexer attempts to scale down performance
- Observe the Android logcat. Once the scaler reaches level 10, check if the indexer continues to call ApplyScaler on it
Actual behavior: The LogError “Cannot increase scaler level as it is already max.” is being logged
Expected behavior: No errors are logged
Reproducible with: 6.0.0 (6000.3.13f1)
Testing environment: Windows 11 (by reporter)
Reproducible with these devices:
By reporter - Samsung Galaxy S20
Note: Not reproduced by CQA