| RenderScript | |
|---|---|
| Developer | |
| Operating system | Android (operating system) |
| Website | developer |
RenderScript is adeprecated component of theAndroid operating system for mobile devices that offers anAPI for acceleration that takes advantage ofheterogeneous hardware. It allows developers to increase the performance of their applications at the cost of writing more complex (lower-level) code.
It provides the developer three primary tools: A simple 3D rendering API, a compute API similar toCUDA, and aC99-derived language.
RenderScript was added inAndroid 3.0 Honeycomb.[1]
As of Android 4.1, RenderScript's experimental3D rendering API has been deprecated, and now exists solely as a compute API.
Android 4.2 added new capabilities to script intrinsics, such asBlend andBlur; as well asScriptGroups which allows related RenderScript scripts to be grouped and executed with one call.It also addedFilterScript, 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 acrossmulti-coreCPUs,GPUs, andDSPs. FilterScript is less precise infloating point precision, and more cross device compatible subset of RenderScript – and should not be mistaken for a RenderScript replacement technology.[2]
On April 19, 2021, Google announced that RenderScript will bedeprecated inAndroid 12, and recommended porting existing code toVulkan.[3]
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:[4] a basic CPU-only driver is provided for every device, while there exist some specific chipset-provided RenderScript drivers that enable GPU usage (e.g. Qualcomm specific drivers, which are provided in thelibRSDriver_adreno.so Android library).
RenderScript is designed to tune tasks at runtime that can be efficiently split and run concurrently on the underlying hardware.[5]
As of Android 4.2, RenderScript has been expanded to run on the GPU in addition to the CPU on supported systems.[6]