Search Issue Tracker
Won't Fix
Won't Fix in 4.0.X
Votes
0
Found in [Package]
4.0.0
Issue ID
APB-8
Regression
No
[Adaptive Performance] ActiveLoader.Deinitialize(); does not deinitialize the loader
Reproduction steps:
1. Open project "UAP"
2. Open Scene Assets/SettingsTest-donotship/SettingsTest
3. Enter Play Mode
4. Click the "Stop AP" button
Expected result: "False" is printed to the Console
Actual result: "True" is printed to the Console
Reproducible with: 2.2.3 (2019.4.38f1, 2020.3.33f1), 4.0.0 (2021.2.19f1, 2022.1.0b16, 2022.2.0a10)
Note:
By pressing “Stop AP” the following is called:
- ActiveLoader.Deinitialize();
- ActiveLoader.Stop();
- AdaptivePerformanceSubsystem.Stop();
- AdaptivePerformanceSubsystem.Destroy();
- AdaptivePerformanceGeneralSettings.Instance.Manager.activeLoader.Deinitialize();
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
Resolution Note:
This can be accomplished with the current Adaptive Performance package using the below sample code.
var apm = GameObject.Find("AdaptivePerformanceManager");
var managerSettings = AdaptivePerformanceGeneralSettings.Instance.Manager;
if (!managerSettings.isInitializationComplete)
return;
managerSettings.DeinitializeLoader();
apm.SetActive(false);
Debug.Log(managerSettings.isInitializationComplete); //this should be false
Debug.Log("AP Loader: " + managerSettings.activeLoader); //this should be null
Resolution Note (4.0.X):
This can be accomplished with the current Adaptive Performance package using the below sample code.
var apm = GameObject.Find("AdaptivePerformanceManager");
var managerSettings = AdaptivePerformanceGeneralSettings.Instance.Manager;
if (!managerSettings.isInitializationComplete)
return;
managerSettings.DeinitializeLoader();
apm.SetActive(false);
Debug.Log(managerSettings.isInitializationComplete); //this should be false
Debug.Log("AP Loader: " + managerSettings.activeLoader); //this should be null
Resolution Note (4.0.X):
This can be accomplished with the current Adaptive Performance package using the below sample code.
var apm = GameObject.Find("AdaptivePerformanceManager");
var managerSettings = AdaptivePerformanceGeneralSettings.Instance.Manager;
if (!managerSettings.isInitializationComplete)
return;
managerSettings.DeinitializeLoader();
apm.SetActive(false);
Debug.Log(managerSettings.isInitializationComplete); //this should be false
Debug.Log("AP Loader: " + managerSettings.activeLoader); //this should be null