This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
그래픽최적화함께하지않겠나
http://unite.unity3dkorea.com
그래픽최적화함께하지않겠나
ozlael.oz
ozlael
ozlael.tistory.com
Support Engineer (john Oh)
-- (Draw Call)- Batch & Set Pass- (Batching)-- (Culling)
CPU
DRAW!
Draw Call :
GPU
OK
(Draw Call)Batch & Set Pass
(Batching)
(Culling)
Frame 1 Frame 2 Frame 3 Frame 4 Frame 5
Frame 6 Frame 7 Frame 8 Frame 9 Frame 10
1 sec
0 sec
10FPS (100ms/frame)
1 frame ...
1 frame ...
1 frame ...
1 frame ...
1 frame ...
1 frame ...
1 frame ...
...
...
CPU GPU
CPU GPU
info
info
Batch & Set Pass(Batching)
(Culling)
CPU
GPU
Frame
End
Frame
start
CPU
GPU
Frame
End
Frame
start
Logic AI Physics
Loading GC …
+Draw Call
CPU
DRAW!
Draw Call
GPU
OK
CPU
DRAW!
TEXTURE!
SHADER!
VERTEX BUFFER!
ALPHA BLENDING!
CHANGE STATES
Draw Call
GPU...
USE Z-BUFFER!
TRANSFORM
CPU (App)
GPU
COMMAND
Draw
COMMAND
SetTexture
COMMAND
Set Texture
COMMAND
Set VBO
COMMAND
Set Shader
Command Buffer
...
Video Memory
To draw
Draw Call Cost
=
Draw Call Cost
= 5122048
Draw Call
image : http://www.upcomingmobilephone.com/
Batch & SetPass
(Draw Call)
(Batching)
(Culling)
Batch= Draw Call + Set VB/IB (mesh)
+ Set Transform (Shader Constant)
+ Set Shader+ Set Texture 0~7+ Set Blending + Set Z enable+ ...
Batches :
1
Batches :
17Batches :
11
Batches :
6
Batch= Draw Call + Set VB/IB (mesh)
+ Set Transform (Shader Constant)
+ Set Shader+ Set Texture 0~7+ Set Blending + Set Z enable+ ...