I made an app on a Motorola Moto E 4G (2nd gen), using Renderscript. I needed a wide-angle camera for my project so I just bought a LG G6. However, my app crashes on the LG G6 when I launch it. It crashes when I call a Renderscript kernel.
Also, since performance is important in my case, I display the time it took to make one cycle on the screen. On the Motorola, when not doing the image processing, this takes +/- 45 ms. However the LG G6 is less regular with sometimes peaks at +150 ms. This is strange because the Motorola is way less powerful than the LG (Snapdragon 200, 1GB RAM vs. Snapdragon 821, 4GB RAM). Is there an explanation for this (and maybe how to solve it)?
The Motorola runs at API 23, Android 6.0 and the LG at API 26, Android 8.0.0.