Quantcast
Channel: Android Mode - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 941

PImage array and particule system, bad performances on Android

$
0
0

Hi,

I'm working on a particules system app for android. I have an array of PImage, from which I select which image will be part of my system. This system emit 5 particules each frame. On my computer, regardless of the nbr of image I select, my framerate is around 60fps. But in Android, The more I select images, the more the framerate drop (around 20 fps when I select 10 image, event if my system still emit 5 particules/frame). I try to change the scope of my array, but I have the same pb if I pass my array as an argument for my constructor, or if I made a copy of it in my particule class, I don't have better result. I guess is related how the way android manage and keep in memory the image, perhaps somebody kno a bit about this...

Any clue, suggestion, idea, advice?

Thanks for yout help!


Viewing all articles
Browse latest Browse all 941

Trending Articles