Fractal Applications on Android

What is the best way to generate fractal curves on android?

Should I use NDK?

and if not

What is the right class to extend View or SurfaceView

I've generated two fractals extending View and overriding onDraw() , when the iteration count is big and curve ratio is too small, generation is too slow


You're wondering how to get more speed in the drawing. There is much information about that on this site (for example here you have some charts).

Basically, you'll get better performance extending SurfaceView than extending View and better by using GLSurfaceView.

You can read here that using NDK will not benefit most applications. I think you shouldn't use it.

If you already know OpenGL I recommend to use GLSurface. If not, try if SurfaceView get enough FPS before learning OpenGL


Recently I stumbled on an Android tutorial at www.bringback.com which seems to contain a bunch of YouTube episodes each about 5-6 minute in length. If you want to jump straight into the SurfaceView tutorial go to part Learn Android Tutorial 1.28- Introduction to the SurfaceView.

链接地址: http://www.djcxy.com/p/57308.html

上一篇: OpenGL与OpenCV结合的计算机视觉教程

下一篇: Android上的分形应用程序