android - Does Renderscript use memory of the heap, or like JNI? -


as title says.

suppose max heap size 50mb , yet device has 2gb of ram, renderscript able use 2gb or constrained 50mb ?

if constrained 50mb , possible use 2gb instead somehow?

if won't constrained 50mb , how use way?

and, "allocation" usage allocate more memory, or more of binding of data of bitmap used on renderscript ?

i'm asking because you'd want use lot of memory handle task, though input , output might small in memory usage.

in experiments, renderscript allocations on budget of java heap. not said explicitly in official documentation, can deduced words:

the android vm can carry out garbage collection share memory renderscript runtime layer

i not sure if applies static (compile-time) allocations well.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -