Question

I am currently doing a project on benchmarking GPU performance vs CPU performance in mobile devices (Android) through a variety of algorithms. (Mainly computational geometric ones)

The problem I am currently facing, is how to implement these algorithms efficiently using RenderScript. For example, given a Topology Library which contains several algorithms such as Point in Polygon Algorithm, do I have to manually rewrite these algorithms in C for use with RenderScript, or is there some magical way to utilize them in RenderScript without having to rewrite the algo?

For example, I am using the JTS Topology Suite (for Java) and am trying to implement the Point in Polygon Analysis. Do I have to rewrite the entire algorithm in C, or find an external C library and import it into renderscript, or some magical way to utilize them in RS?

Thank you!

Was it helpful?

Solution

Some code can probably be reused, but you will have to make modifications in any case. If you are really unfamiliar with C, this might be a good way to get better at C and RenderScript.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top