You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RSBlur creates 4 Objects(2 Allocation, RenderScript and ScriptIntrinsicBlur) but it only destroys the RenderScript. This causes the resources to stick around and never get released. Calling destroy on all of those object in the finally clause fixes the issue.
I will try to find the time to make a PR.
Tested on a Nexus 6
The text was updated successfully, but these errors were encountered:
I try to use RenderScript,and I know somthing about it now, I hope it can help you, RSBlur creates 4 Objects(2 Allocation, RenderScript and ScriptIntrinsicBlur) ,RenderScript only have one in a application,because class RenderScript have a static ArrayList<> to save RenderScript‘s Object, the Object is not released when you call destroy() ,they just call native function like c or c++, and you do not need to destroy the Object ,however ,you can call releaseAllContexts() to clear the List which save RenderScrit's Object if you want to destroy all RenderScript. then,Allocation,ScriptIntrinsicBlur,all they is used as Local variables ,their Object will be destroy by GC, and you should call destroy to use jni's function like RenderScript.
RSBlur creates 4 Objects(2 Allocation, RenderScript and ScriptIntrinsicBlur) but it only destroys the RenderScript. This causes the resources to stick around and never get released. Calling destroy on all of those object in the finally clause fixes the issue.
I will try to find the time to make a PR.
Tested on a Nexus 6
The text was updated successfully, but these errors were encountered: