Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 762
Tiko Avatar asked Feb 01 '12 12:02

Tiko


2 Answers

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

like image 128
Rafaesp Avatar answered Nov 22 '22 09:11

Rafaesp


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.

like image 29
Stephen Quan Avatar answered Nov 22 '22 10:11

Stephen Quan