Popular Science: Two or Three Things About GPU (I)

In addition to the CPU (central processing unit), another important component of the System On a Chip (SoC) is the Graphical Processing Unit (GPU), commonly known as the GPU. Everyone may know that playing 3D games is indispensable, but it may not be clear what role it will play. This time we will unveil the mystery of the GPU.


The GPU is designed to quickly perform certain types of mathematical operations, especially for floating-point, vector, and matrix calculations. It converts information from 3D models to 2D representations, while adding different textures and shadow effects, so the GPU is in hardware. It is also a special existence.

The 3D model consists of many small triangles defining the vertices of each triangle through the X, Y, and Z coordinates. In actual processing, the vertices of the small triangles will coincide with each other. If a complex model consists of 500 small triangles, the number of vertices that need to be defined finally does not have as many as 1,500. To present an abstract 3D model, three elements are indispensable: displacement, rotation (three axes), and scaling, all of which are collectively referred to as transformation. The best way to handle transformations is to use 4x4 matrices in order not to fall into complicated and complex mathematical operations.

From 3D modeling to the final display on the screen, the GPU renders the scene using pipelining. Earlier the pipeline operation was fixed and no changes were made. The entire operation started by reading the vertex data of the triangle. After the GPU processed it, it entered the frame buffer and was ready to send it to the monitor. The GPU can also perform certain special effects on the scene, but these are all fixed by engineers and offer few options.


Programmable shaders

While Android is still in its infancy, desktop-grade GPUs can begin to program pipelined operations. With the introduction of the OpenGL ES 2.0 standard, mobile GPUs are also beginning to support programmable operations. These programmable sections are called shaders. The most important shaders are vertex shaders and Fragment shader. The vertex shader is called once for each vertex, so the vertex shader needs to be called three times when rendering a triangle, and the fragment shader, we can simply think of each fragment as every pixel on the screen. So each pixel fragment shader is called once.


The two shaders serve different roles. The vertex shader is mainly responsible for transforming the 3D model's data into real-world locations and texture maps or light sources, and then transforming. The fragment shader is used to set each pixel. Related colors. A simple explanation: The vertex shader handles vertex-related information. The fragment shader handles the color information of the screen.

Carefully observe that you will notice that the processing of each vertex is independent of each other, as is the processing of each fragment, which means that the GPU can run the shader in parallel. In fact, the GPU does this, and most mobile GPUs do. There are multiple shader cores (a separate unit of programmable execution shader functionality called the shader core), and GPU vendors claim that marketing for shader calls is better than home.


Take ARM's Mali GPU as an example. The x in MPx of the GPU name suffix of the series represents the number of shader cores, and the Mali T880 MP12 represents 12 shader cores. Each core has a complicated pipeline, which means that each time a shader operation is completed, a new operation instruction will be issued immediately. At the same time, there is more than one arithmetic unit in the core, so multiple operations can be completed in the same time. ARM Mali GPUs (including the Mali T600, T700, and T800 series) can issue one instruction per clock cycle in each pipeline, so a typical shader core can issue 4 instructions in parallel, and the Mali GPU currently supports up to 16 cores. This means that up to 64 instructions can be issued in parallel.

All of this means that the GPU is a way of working with large amounts of data in parallel, very different from the CPU, not the usual sequential operation. But this is only a minor issue, and the serious fact is that the programmable shader core represents that each core's actual performance is no longer set by the GPU engineer, but depends on the app developer. Then a poor quality shader code can make the GPU's performance drop straight. Fortunately, most 3D game developers understand this and will optimize the shader operation.

Graphic translation is compiled from Android Authority because of the limited level of translators.

Reward
WeChat scan, call the author ~
Return to the sofa home
沙发管家微信
Scan to focus on the sofa housekeeper WeChat QQ group: 沙发网官方群 Weibo:
Related articles recommended
Popular Science: Two or Three Things About GPU (Part 2) The best Mary ARM Mali-G71 GPU detailed interpretation The power of 10nm! The new ARM Cortex-A73 architecture detailed Popular Science: Two or Three Things About GPU (I)
You all have to retire! ARM Cortex-A35 Architecture Analysis Japanese people will not collapse in the days of ARM Apple can move to MIPS Samsung has been authorized to settle GPU patent dispute with Nvidia Crack Expert sapphire PGS FirePro S10000
Hot Device Installation Method See More>>
天猫魔盒M13

Lynx Box M13

Installation Guide>>
华为荣耀盒子Pro

Huawei Glory Box Pro

Installation Guide>>
小米盒子3

Millet box 3

Installation Guide>>
英菲克i9

Infinik i9

Installation Guide>>
KKTV

KKTV

Installation Guide>>
乐视TV S50 Air

Letv TV S50 Air

Installation Guide>>
up to date
我的手机我做主,什么APP值得装 篇二:你知道这些APP可以变得更清爽么? My phone is my master, what APP is worth loading two: Do ​​you know these apps can be more refreshing? SioeyeIris4G Blink sports live camera evaluation VR machine Oculus Go listing, the country's summer trip out of the box one: BOSE SoundSport Pulse wireless Bluetooth sports headset out of the box do not run wrong: WeLoop Hele 3s sports watch out of the box comment
Hottest
佳能EOS M6相机入手体验 Canon EOS M6 camera start experience from entry to give up: Synology Synology DS416play NAS network storage usage report (on) TITAN X Star Wars Collector's Edition release even AMD's red are used to help you Province 200: crack ZTE ZTE B860A IPTV TV Box tutorial Black Group DSM6.1 installation tutorial (with download)
BAIDU_CLB_fillSlot("1053693");BAIDU_CLB_fillSlot("1053701");

Latest equipment

Smart TV TV box
1 Konka AK50 2 KKTVU50F1 4K 3 Changhong 32T8S 4 Changhong 39T8S 5 Skyworth 49H5 6 Cool open 50K5C 7 Haier LQ55AL88M72 8 Philips 65PUF 6701/T3 9 Philips 43PUF 6701 10 Rongshida 43Q2
1 days of the cat's box M17_A 2 Mohe TVB7 eight nuclear 3 Yidian S12 4 sea ​​Meidi H7M 5 landscape A4+M16 6 Xianda A1 (2G+8G) 7 Xinke kv100 8 Xianda A1 (1G+16G) 9 Skyworth H4401 10 China Radio and Television T6

Smart TV / Box Reviews

With the L-MIX Smart Micro Projector, TV sets and computers can all be lost New PPTV NU4 unveiled CE China, eye-catching design and comprehensive upgrade Hisense Launches 100-inch Ultra HDTV in Thailand, Tailored for World Cup Fans Zhang Yuyi Guo Jingfei appeared in the Chinese version of "She is Beautiful," Mango TV version of the entire network broadcast alone Ten thousand yuan strongest TV battle Sony X9000F Samsung Q6F Solid color hard screen VS quantum dots Who is the strongest LCD? LG Sony Samsung Competition

Installation guide

Find the model to find the method
Millet TV 4A 43 inch youth Hisense box Z2 Lynx Box 3A micro whale TV 65D2UT AK50 U50F1 TV fruit 4K T1
Daily Checklist: Which is a big screen smart TV? Budget 4000 see here Knowledge of cold storage sauce | Learn to buy five cars, you buy TV but these are screwed up? How does the old TV connect the box? How does the box connect to the TV? What should I do if I use the application to prompt "Parsing Error"? Does the Lynx Box work?
.carousel-indicators { bottom: -25px; } .carousel-indicators li { background-color: e8e8e8; } .carousel-indicators .active { background-color: f93; }

application

Hot topics

劳动节来得太突然,来点应用过假期吧双11专题6款超凡创意软件

Incremental linear encoders

Incremental Encoder is commonly used, and Absolute Encoder is used if there are strict requirements on position and zero position. Servo system should be analyzed in detail, depending on the application situation. Commonly used incremental encoder for speed measurement, which can be used for infinite accumulation measurement; Absolute encoder is used for position measurement, and the position is unique (single or multiple turns). Finally, it depends on the application situation and the purpose and requirements to be realized.

Incremental Linear Encoders,Linear Optical Encoder,Linear Position Encoder,Encoder Bearing Tester

Yuheng Optics Co., Ltd.(Changchun) , https://www.yhenoptics.com