RenderScript vs. NDK

Both RenderScript and NDK are here to improve the performance of applications. While they share a common goal, you should think carefully about using one versus the other. Each has its own advantages and drawbacks, and not thinking things through could result in you being stuck during development or finding out the hard way that something is extremely difficult to implement.

The advantages of RenderScript can be summarized as follows:

  • Platform-independent (ARM, MIPS, Intel, for example)
  • Easy parallel execution
  • Can use CPU, GPU, or other processing units

On the other hand, RenderScript does have some drawbacks:

  • Android-only (scripts cannot be used with other platforms like iOS)
  • Learning curve
  • Limited number of APIs

Actual ...

Get Pro Android Apps Performance Optimization now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.