Site icon Real Mi Central

Android 12 abandoned the render script API for GPU computing tasks

Android 12 GPU

Android 12 GPU

As early as in the Android 3.0 (Honeycomb) 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. However, 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 in the Android Developer Blog 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.

Join Our Android 12 Channel On Telegram

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 provides an Android library to replace most Intrinsics functions that are no longer recommended.

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

Source

If you like our news and you want to see such news even further, then follow RealMi Central on Telegram (RealMi Central, Xiaomi, Apple, Realme, RMC Gaming, Samsung, Microsoft, OnePlus, Huawei/Honor, Android 12), Twitter, Facebook (Page) (Group) & Instagram.

Exit mobile version