[android-developers] Re: NDK: faster alternative to JNI based custom rendering

2013-10-14 Thread Nobu Games
As you already pointed out, floats can be a bottleneck. In many cases it is possible to rewrite graphics algorithms in a way to make exclusive use of integers. You need to get rid of the fractional part and that can be done by scaling up all values depending on your needs for the precision.

[android-developers] Re: NDK: faster alternative to JNI based custom rendering

2013-10-14 Thread Rick
Hello Nobu, Thanks for all the tips...I'm aware of fixed-point math, RenderScript, NEON stuff but unfortunately rewriting the current C++ renderer/rasterizer is no option for me as it would mean to write almost yet another Skia library(I need full range of 2d verctorial graphics features