开发者

How to get performance increases using Processing for Android?

I have converted a few of my Processing sketches into Android apps, but they seem to run really slowly in the emulator and on my device.

Are there any tips on how to increase the speed and performance of my sketch running as an Android app? Are there things or parts of the Processing API I s开发者_Python百科hould avoid?


http://developer.android.com/guide/practices/design/performance.html I hope that helps you.


Facepalm to all answers...Their answers are for programmers that need every single % of the CPU optimized. But I have the same issue as you, not really having much going on in the sketch, but it's still slow. And I doubt BlackDragon even knows what Processing is

My answer: Try using a different renderer, P2D for example.

You can use it by putting it next to the sketch size definition:

size(Width,Heigth,P2D);

Or if you don't want to use that function, you can override the sketchRenderer by placing this method.

String sketchRenderer(){
   return P2D;
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜