News

Google decided to abandon the long-standing rendering script API in Android 12

As early as in the Android 3.0 era, Google introduced the RenderScript API so that developers can run high-performance workloads on the CPU/GPU without the need to resort to NDK or GPU-specific APIs.

JOIN OUR TELEGRAM CHANNEL

Moreover, with improvements such as OpenCL GPU computing, the introduction of the Vulkan API, and the sharing of bitmap hardware buffers between the Android SDK and NDK code, Google has decided to abandon the long-standing rendering script API in Android 12.

Google mentioned that it no longer recommends the use of RenderScript for tasks that are critical to performance requirements and shifts to the Vulkan API that can operate efficiently at the GPU hardware level and has an excellent cross-platform experience.

In a sample application provided by Google, you can clearly know the operating difference between RenderScript and its equivalent Vulkan API. But for those developers who still provide support for old devices, will also have to maintain two sets of code solutions.

Finally, for applications that use RenderScript for high-performance image processing feature sets such as blurring, Google gives an Android library to replace most Intrinsics functions that are no longer recommended.

Although these APIs can continue to run on Android 12, Google state that developers will receive warnings when they try to compile RenderScript code.

(Via)

Click to comment

Leave a Reply

Your email address will not be published. Required fields are marked *

The Latest

To Top