Adobe-Runtime-Support
Adobe-Runtime-Support copied to clipboard
ANE context call performance
Im testing performance of call ANE method, and in Android appears some performance degradation, no matter if the method do nothing.
Every call costs a little more time, and after a while it "resets" and starts again with the same behaviour. Its more appreciable if you call more often to the method.
On iOS it works fine, 0 ms no matter the number of calls.
Tested with:
airsdk 33.1.1.92 Samsung Galaxy A5
I attach some screenshots with the total number of calls and the elapsed time of the last call. The method is called every 33ms (30fps)
That's an odd one.. can you confirm what platform you're using for the ANE (Java or C/C++) - and ideally if you can share your test case it will mean we can get a reproduction quickly and dive straight into debugging..
thanks
Its Java, i will try to make a clean test.
Hi, i send you the code for testing.
The result in my Samsung Galaxy A5 (2016) (Android 7.0) is:
For example, after 19500 the last call was 22ms, and at 19600 it only 1ms, but starts to increase again, and repeats the same behaviour forever ¿Garbage Collector problem?
I tested in Xiaomi Mi 9T (Android 11) and Galaxy S22 (Android 12), and it works fine, ¿maybe is problem of android version?
Without calling the ANE function the CPU load is around 17%
Calling the ANE function the CPU load is 100%
I dont know if with Adobe Scout its possible go depth to know where is the "problem", ¿some ideas?