“This is the 10th day of my participation in the Gwen Challenge in November. Check out the details: The Last Gwen Challenge in 2021.”

Android Developer options # 5, Hardware + Media.

Address “General Options” :

Juejin. Cn/post / 703007…

The second address “debug” :

Juejin. Cn/post / 703078…

The third address “network” :

Juejin. Cn/post / 703105…

Chapter 4 address “Input + drawing” :

Juejin. Cn/post / 703136…

Settings -> System and Updates -> Developer Options

Hardware article

With hardware-accelerated rendering options, you can leverage hardware-based options such as GPU, hardware layer, and multi-sampled anti-aliasing (MSAA) to optimize your application for the target hardware platform.

Forcibly perform GPU rendering

If an application is programmed without GPU rendering by default, the application is forced to use the GPU to draw 2D graphics.

GPU force rendering is a form of HWA (hardware acceleration) and can be better optimized. Moving graphics processing from THE CPU to the GPU will make full use of the GPU of the phone. The phone will run more smoothly, and the experience of playing games will be better. It also costs more electricity, and the phone will get hot more easily.

The GPU view is updated

Displays elements on any screen drawn using the GPU. If the screen keeps blinking after this function is enabled, the GPU is being used to draw updated views.

Displays hardware layer updates

That is, the Flash hardware layer is green when it is updated, and it is usually not turned on, so it has not been detected.

Debug GPU overdrawing

Displays color coding on the device so that you can visualize how many times the same pixel is drawn in the same frame. The visualization shows where your application may be rendering unnecessarily.

Check GPU rendering speed and overdraw details refer to:

Developer.android.com/topic/perfo…

Android developers commonly used items, according to the display optimization layout, draw code. It’s very human and offers options suitable for green amblyopia viewing.

Debug non-rectangular clipping operations

Close the clipping area on the canvas to create an unconventional (non-rectangular) canvas area. In general, the clipping region does not allow any graphics to be drawn outside the boundaries of the circular clipping region.

Forcibly start 4X MSAA

Enable multiple sampling anti-aliasing (MSAA) in Open GL ES 2.0 applications.

4X MSAA is four times multiple sampling anti-aliasing meaning, make game characters and other things look softer, smoother, look more pleasing to the eye, improve picture quality, but will make the GPU bring a greater burden, will be very electricity oh.

Deactivate the HW overlay

By using a hardware overlay, each application that displays content on the screen consumes fewer processing resources. Without the overlay layer, the app shares video memory and must constantly check for conflicts and clipping areas to render the image properly. Inspections consume a significant amount of processing resources.

Analog color space

That is, changing the color scheme of the entire device interface. If total color blindness is selected, the human eye will see the screen in all black and white.

However, when screen shots are taken in simulated color space, they appear as if the color scheme had not changed.

Set up the GPU rendering program

You can change the default Open GL graphics engine to Open GL Skia graphics engine.

Open GL Skia is a Canvas API for 2D Painters. It’s a flat layer generator, like a procedural version of Photoshop.

Open GL is an API that drives graphics card hardware for 3D pipeline, like Maya/Blender, and outputs spatial rendering results.

Skia is used to draw 2D and OpenGL is used to draw 3D.

The media report

Disable USB audio transfer

Turning OFF USB audio transfer on disables automatic routing to external audio devices connected to your computer through the USB port. Automatic routing may interfere with USB awareness applications.

On Android 11 and later, when an application without RECORD_AUDIO permission requests direct access to a USB audio device with audio capture capability (such as a USB headset) using the UsbManager, a warning message is displayed asking the user to confirm the device permission. Any “always use” option is ignored, so each time the application requests access, the user must acknowledge the warning message and grant the appropriate permissions. To avoid this behavior, the application should request the RECORD_AUDIO permission.


🌈 follow me ac~ ❤️

Public account: Ni K Ni K