RenderScript


RenderScript is a component of the Android operating system for mobile devices that offers an API for acceleration that takes advantage of heterogeneous hardware. It allows developers to increase the performance of their applications at the cost of writing more complex code.
It provides the developer three primary tools: A simple 3D rendering API, a compute API similar to CUDA, and a C99-derived language.

History

RenderScript was added in Android 3.0 Honeycomb
As of Android 4.1, Renderscipt's experimental 3D rendering API has been deprecated, and now exists solely as a compute API.
Android 4.2 added new capabilities to script intrinsics, such as Blend and Blur; as well as ScriptGroups which allow you to chain together related RenderScript scripts and execute them with one call.
Most recently, Google added FilterScript, which is a subset of RenderScript that allows developers to write their image processing operations in FilterScript using the standard RenderScript runtime API, but within stricter constraints that ensure wider compatibility and improved optimization across multi-core CPUs, GPUs, and DSPs. FilterScript is a less precise in terms of numeric datatype precision, and more cross device compatible subset of RenderScript - and should not be mistaken for a RenderScript replacement technology.

Features

Portability

RenderScript is designed to always run on the various Android platforms regardless of hardware type. Performance tuning is done at runtime.
RenderScript portability depends upon device-specific drivers: a basic CPU-only driver is provided for every device, while there exist some specific chipset-provided RenderScript drivers that enable GPU usage.

Performance

RenderScript is designed to tune tasks at runtime that can be efficiently split and run concurrently on the underlying hardware.
As of Android 4.2, RenderScript has been expanded to run on the GPU in addition to the CPU on supported systems.

Limitations