I am looking for example code sample that shows how to achieve 30 frames per seconds using Android SurfaceView? Assume each frame draws a circle starting at position x and y and each frame increments x and y by one.
Bonus question: On top of above I want to overlay another View to display text content so that whatever graphics is being drawn shows underneath this text content. How this can be done?
If you want high frame rates, you really need to read up on GLSurfaceView. Under a normal surface view you are going to be at the mercy of the expense layout calculations and CPU centric rendering. With the GLSurfaceView you can offload that to the GPU and have a tight efficient control of layouts.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With