annotate presen/presen.html @ 13:083c7035b2cf

fix
author Yutaka_Kinjyo
date Wed, 13 Apr 2011 10:27:01 +0900
parents e6a78ee8fb13
children 06fe904e1951
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
12
Yutaka_Kinjyo
parents:
diff changeset
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
Yutaka_Kinjyo
parents:
diff changeset
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Yutaka_Kinjyo
parents:
diff changeset
3
Yutaka_Kinjyo
parents:
diff changeset
4 <html xmlns="http://www.w3.org/1999/xhtml">
Yutaka_Kinjyo
parents:
diff changeset
5 <META http-equiv="Content-Type" content="text/html; charset=utf-8">
Yutaka_Kinjyo
parents:
diff changeset
6
Yutaka_Kinjyo
parents:
diff changeset
7 <head>
Yutaka_Kinjyo
parents:
diff changeset
8 <title>発表資料</title>
Yutaka_Kinjyo
parents:
diff changeset
9 <!-- metadata -->
Yutaka_Kinjyo
parents:
diff changeset
10 <meta name="generator" content="S5" />
Yutaka_Kinjyo
parents:
diff changeset
11 <meta name="version" content="S5 1.1" />
Yutaka_Kinjyo
parents:
diff changeset
12 <meta name="presdate" content="20050728" />
Yutaka_Kinjyo
parents:
diff changeset
13 <meta name="author" content="Eric A. Meyer" />
Yutaka_Kinjyo
parents:
diff changeset
14 <meta name="company" content="Complex Spiral Consulting" />
Yutaka_Kinjyo
parents:
diff changeset
15 <!-- configuration parameters -->
Yutaka_Kinjyo
parents:
diff changeset
16 <meta name="defaultView" content="slideshow" />
Yutaka_Kinjyo
parents:
diff changeset
17 <meta name="controlVis" content="hidden" />
Yutaka_Kinjyo
parents:
diff changeset
18 <!-- style sheet links -->
Yutaka_Kinjyo
parents:
diff changeset
19 <link rel="stylesheet" href="ui/default/slides.css" type="text/css" media="projection" id="slideProj" />
Yutaka_Kinjyo
parents:
diff changeset
20 <link rel="stylesheet" href="ui/default/outline.css" type="text/css" media="screen" id="outlineStyle" />
Yutaka_Kinjyo
parents:
diff changeset
21 <link rel="stylesheet" href="ui/default/print.css" type="text/css" media="print" id="slidePrint" />
Yutaka_Kinjyo
parents:
diff changeset
22 <link rel="stylesheet" href="ui/default/opera.css" type="text/css" media="projection" id="operaFix" />
Yutaka_Kinjyo
parents:
diff changeset
23 <!-- S5 JS -->
Yutaka_Kinjyo
parents:
diff changeset
24 <script src="ui/default/slides.js" type="text/javascript"></script>
Yutaka_Kinjyo
parents:
diff changeset
25
Yutaka_Kinjyo
parents:
diff changeset
26 <style type="text/css">
Yutaka_Kinjyo
parents:
diff changeset
27 body {
Yutaka_Kinjyo
parents:
diff changeset
28 font-size: 100%;
Yutaka_Kinjyo
parents:
diff changeset
29 }
Yutaka_Kinjyo
parents:
diff changeset
30 p.ex10 { font-size: 2.0em; }
Yutaka_Kinjyo
parents:
diff changeset
31 p.ex9 { font-size: 1.9em; }
Yutaka_Kinjyo
parents:
diff changeset
32 p.ex8 { font-size: 1.8em; }
Yutaka_Kinjyo
parents:
diff changeset
33 p.ex7 { font-size: 1.7em; }
Yutaka_Kinjyo
parents:
diff changeset
34 p.ex6 { font-size: 1.6em; }
Yutaka_Kinjyo
parents:
diff changeset
35 p.ex5 { font-size: 1.5em; }
Yutaka_Kinjyo
parents:
diff changeset
36 p.ex4 { font-size: 1.4em; }
Yutaka_Kinjyo
parents:
diff changeset
37 p.ex3 { font-size: 1.3em; }
Yutaka_Kinjyo
parents:
diff changeset
38 p.ex2 { font-size: 1.2em; }
Yutaka_Kinjyo
parents:
diff changeset
39 p.ex1 { font-size: 1.1em; }
Yutaka_Kinjyo
parents:
diff changeset
40 p.ex0 { font-size: 1.0em; }
Yutaka_Kinjyo
parents:
diff changeset
41 p.ex05 { font-size: 0.5em; }
Yutaka_Kinjyo
parents:
diff changeset
42
Yutaka_Kinjyo
parents:
diff changeset
43 span.classifier {
Yutaka_Kinjyo
parents:
diff changeset
44 font-family: sans-serif ;
Yutaka_Kinjyo
parents:
diff changeset
45 font-style: oblique }
Yutaka_Kinjyo
parents:
diff changeset
46
Yutaka_Kinjyo
parents:
diff changeset
47 span.classifier-delimiter {
Yutaka_Kinjyo
parents:
diff changeset
48 font-family: sans-serif ;
Yutaka_Kinjyo
parents:
diff changeset
49 font-weight: bold }
Yutaka_Kinjyo
parents:
diff changeset
50
Yutaka_Kinjyo
parents:
diff changeset
51 span.interpreted {
Yutaka_Kinjyo
parents:
diff changeset
52 font-family: sans-serif }
Yutaka_Kinjyo
parents:
diff changeset
53
Yutaka_Kinjyo
parents:
diff changeset
54 span.option {
Yutaka_Kinjyo
parents:
diff changeset
55 white-space: nowrap }
Yutaka_Kinjyo
parents:
diff changeset
56
Yutaka_Kinjyo
parents:
diff changeset
57 span.pre {
Yutaka_Kinjyo
parents:
diff changeset
58 white-space: pre }
Yutaka_Kinjyo
parents:
diff changeset
59
Yutaka_Kinjyo
parents:
diff changeset
60 span.problematic {
Yutaka_Kinjyo
parents:
diff changeset
61 color: red }
Yutaka_Kinjyo
parents:
diff changeset
62
Yutaka_Kinjyo
parents:
diff changeset
63 span.section-subtitle {
Yutaka_Kinjyo
parents:
diff changeset
64 /* font-size relative to parent (h1..h6 element) */
Yutaka_Kinjyo
parents:
diff changeset
65 font-size: 80% }
Yutaka_Kinjyo
parents:
diff changeset
66
Yutaka_Kinjyo
parents:
diff changeset
67 </style>
Yutaka_Kinjyo
parents:
diff changeset
68 </head>
Yutaka_Kinjyo
parents:
diff changeset
69
Yutaka_Kinjyo
parents:
diff changeset
70
Yutaka_Kinjyo
parents:
diff changeset
71 <body>
Yutaka_Kinjyo
parents:
diff changeset
72
Yutaka_Kinjyo
parents:
diff changeset
73 <div class="layout">
Yutaka_Kinjyo
parents:
diff changeset
74 <div id="controls"><!-- DO NOT EDIT --></div>
Yutaka_Kinjyo
parents:
diff changeset
75 <div id="currentSlide"><!-- DO NOT EDIT --></div>
Yutaka_Kinjyo
parents:
diff changeset
76 <div id="header"></div>
Yutaka_Kinjyo
parents:
diff changeset
77 <div id="footer">
Yutaka_Kinjyo
parents:
diff changeset
78 <!--<h1>Cell上のソフトウェアレンダリングの高速化と高機能化</h1>
Yutaka_Kinjyo
parents:
diff changeset
79 <h2>琉球大学工学部情報工学科並列信頼研</h2>-->
Yutaka_Kinjyo
parents:
diff changeset
80 </div>
Yutaka_Kinjyo
parents:
diff changeset
81
Yutaka_Kinjyo
parents:
diff changeset
82 </div>
Yutaka_Kinjyo
parents:
diff changeset
83
Yutaka_Kinjyo
parents:
diff changeset
84 <div class="presentation">
Yutaka_Kinjyo
parents:
diff changeset
85
Yutaka_Kinjyo
parents:
diff changeset
86 <div class="slide">
Yutaka_Kinjyo
parents:
diff changeset
87
Yutaka_Kinjyo
parents:
diff changeset
88 <h1>ゲームフレームワーク Cerium TaskManager の改良</h1>
Yutaka_Kinjyo
parents:
diff changeset
89 <h3>金城 裕, 河野 真治, <br>多賀野 海人, 小林 佑亮</h3>
Yutaka_Kinjyo
parents:
diff changeset
90 <h4>琉球大学大学院理工学研究科情報工学専攻並列信頼研</h4>
Yutaka_Kinjyo
parents:
diff changeset
91 </div>
Yutaka_Kinjyo
parents:
diff changeset
92
Yutaka_Kinjyo
parents:
diff changeset
93 <div class="slide">
Yutaka_Kinjyo
parents:
diff changeset
94 <h1>概要</h1>
Yutaka_Kinjyo
parents:
diff changeset
95
Yutaka_Kinjyo
parents:
diff changeset
96 ゲームフレームワーク Cerium TaskManager を開発しました。
Yutaka_Kinjyo
parents:
diff changeset
97
Yutaka_Kinjyo
parents:
diff changeset
98 <ul>
Yutaka_Kinjyo
parents:
diff changeset
99 <li>動作環境:MacOSX, Linux, PS3/Cell</li>
Yutaka_Kinjyo
parents:
diff changeset
100 <li>主にCellに特化している。</li>
Yutaka_Kinjyo
parents:
diff changeset
101 <li>SceneGraphを用いて、ゲームを記述する</li>
Yutaka_Kinjyo
parents:
diff changeset
102
Yutaka_Kinjyo
parents:
diff changeset
103 </ul><br>
Yutaka_Kinjyo
parents:
diff changeset
104
Yutaka_Kinjyo
parents:
diff changeset
105 琉球大学の学生実験で使用している。
Yutaka_Kinjyo
parents:
diff changeset
106
Yutaka_Kinjyo
parents:
diff changeset
107 </div>
Yutaka_Kinjyo
parents:
diff changeset
108
Yutaka_Kinjyo
parents:
diff changeset
109
Yutaka_Kinjyo
parents:
diff changeset
110 <div class="slide">
Yutaka_Kinjyo
parents:
diff changeset
111 <h1>Cell</h1>
Yutaka_Kinjyo
parents:
diff changeset
112 Cell Broadband Engine
Yutaka_Kinjyo
parents:
diff changeset
113
Yutaka_Kinjyo
parents:
diff changeset
114 <ul>
Yutaka_Kinjyo
parents:
diff changeset
115 <li>ソニー・コンピュータエンタテインメント、ソニー、IBM , 東芝によって開発されたマルチコア CPU である</li>
Yutaka_Kinjyo
parents:
diff changeset
116 <li>1基の制御系プロセッサコアPPE(PowerPC Processor Element)</li>
Yutaka_Kinjyo
parents:
diff changeset
117 <li>8基の演算系プロセッサコアSPE(Synergistic Processor Element)</li>
Yutaka_Kinjyo
parents:
diff changeset
118 <li>各コアはEIB(Element Interconnect Bus)とうバスで接続されている</li>
Yutaka_Kinjyo
parents:
diff changeset
119 </ul><br>
Yutaka_Kinjyo
parents:
diff changeset
120
Yutaka_Kinjyo
parents:
diff changeset
121 </div>
Yutaka_Kinjyo
parents:
diff changeset
122
Yutaka_Kinjyo
parents:
diff changeset
123 <div class="slide">
Yutaka_Kinjyo
parents:
diff changeset
124 <h1>Cell</h1>
Yutaka_Kinjyo
parents:
diff changeset
125 Cell Broadband Engine
Yutaka_Kinjyo
parents:
diff changeset
126
Yutaka_Kinjyo
parents:
diff changeset
127 <table height="100%" width="100%" border="0">
Yutaka_Kinjyo
parents:
diff changeset
128 <tr><td align="center" valign="middle">
Yutaka_Kinjyo
parents:
diff changeset
129 <img src="gazo/cell_arch.jpg" style="width: 50%%"></td></tr>
Yutaka_Kinjyo
parents:
diff changeset
130 </table>
Yutaka_Kinjyo
parents:
diff changeset
131
Yutaka_Kinjyo
parents:
diff changeset
132
Yutaka_Kinjyo
parents:
diff changeset
133 PPEは直接メインメモリアクセスできるが、SPEはそれぞれのLSにしかアクセスできない<br>
Yutaka_Kinjyo
parents:
diff changeset
134 DMA転送を用いてメインメモリからのデータを明示的に取得する
Yutaka_Kinjyo
parents:
diff changeset
135
Yutaka_Kinjyo
parents:
diff changeset
136 </div>
Yutaka_Kinjyo
parents:
diff changeset
137
Yutaka_Kinjyo
parents:
diff changeset
138 <div class="slide">
Yutaka_Kinjyo
parents:
diff changeset
139 <h1>Cell</h1>
Yutaka_Kinjyo
parents:
diff changeset
140 Cell のプログラミングスタイル
Yutaka_Kinjyo
parents:
diff changeset
141
Yutaka_Kinjyo
parents:
diff changeset
142 <ul>
Yutaka_Kinjyo
parents:
diff changeset
143 <li>PPEがデータと仕事を分割し、各SPEへ割り当てる</li>
Yutaka_Kinjyo
parents:
diff changeset
144 </ul><br>
Yutaka_Kinjyo
parents:
diff changeset
145
Yutaka_Kinjyo
parents:
diff changeset
146 Ceriumでは関数をTaskとして定義。Taskを各SPEへ割り当てる。<br>
Yutaka_Kinjyo
parents:
diff changeset
147 一つのTaskにはinput,output,param,等のデータを持たせる<br>
Yutaka_Kinjyo
parents:
diff changeset
148
Yutaka_Kinjyo
parents:
diff changeset
149
Yutaka_Kinjyo
parents:
diff changeset
150 </div>
Yutaka_Kinjyo
parents:
diff changeset
151
Yutaka_Kinjyo
parents:
diff changeset
152 <div class="slide">
Yutaka_Kinjyo
parents:
diff changeset
153 <h1>Ceriumの構成</h1>
Yutaka_Kinjyo
parents:
diff changeset
154
Yutaka_Kinjyo
parents:
diff changeset
155 Ceriumの構成
Yutaka_Kinjyo
parents:
diff changeset
156
Yutaka_Kinjyo
parents:
diff changeset
157 <ul>
Yutaka_Kinjyo
parents:
diff changeset
158 <li>TaskManager</li>
Yutaka_Kinjyo
parents:
diff changeset
159 <ul>
Yutaka_Kinjyo
parents:
diff changeset
160 <li>ユーザが定義したTaskを管理し、各コアに割り当てる</li>
Yutaka_Kinjyo
parents:
diff changeset
161 </ul>
Yutaka_Kinjyo
parents:
diff changeset
162
Yutaka_Kinjyo
parents:
diff changeset
163 <li>RenderingEngine</li>
Yutaka_Kinjyo
parents:
diff changeset
164 <ul>
Yutaka_Kinjyo
parents:
diff changeset
165 <li>オブジェクトを画面に描画する</li>
Yutaka_Kinjyo
parents:
diff changeset
166 <li>3種類のTaskから構成される</li>
Yutaka_Kinjyo
parents:
diff changeset
167 </ul>
Yutaka_Kinjyo
parents:
diff changeset
168
Yutaka_Kinjyo
parents:
diff changeset
169 <li>SceneGraph</li>
Yutaka_Kinjyo
parents:
diff changeset
170 <ul>
Yutaka_Kinjyo
parents:
diff changeset
171 <li>ゲームのルールを記述してく</li>
Yutaka_Kinjyo
parents:
diff changeset
172 <li>ゲームのシーンを作成し、それを切り替えながらゲームを進行する</li>
Yutaka_Kinjyo
parents:
diff changeset
173 <li>OpenSceneGraphのようなもの</li>
Yutaka_Kinjyo
parents:
diff changeset
174 </ul>
Yutaka_Kinjyo
parents:
diff changeset
175
Yutaka_Kinjyo
parents:
diff changeset
176 </ul><br>
Yutaka_Kinjyo
parents:
diff changeset
177
Yutaka_Kinjyo
parents:
diff changeset
178
Yutaka_Kinjyo
parents:
diff changeset
179
Yutaka_Kinjyo
parents:
diff changeset
180 </div>
Yutaka_Kinjyo
parents:
diff changeset
181
Yutaka_Kinjyo
parents:
diff changeset
182 <div class="slide">
Yutaka_Kinjyo
parents:
diff changeset
183 <h1>Ceriumの構成</h1>
Yutaka_Kinjyo
parents:
diff changeset
184
Yutaka_Kinjyo
parents:
diff changeset
185 <table height="100%" width="100%" border="0">
Yutaka_Kinjyo
parents:
diff changeset
186 <tr><td align="center" valign="middle">
Yutaka_Kinjyo
parents:
diff changeset
187 <img src="gazo/cerium.png" style="width: 50%%"></td></tr>
Yutaka_Kinjyo
parents:
diff changeset
188 </table>
Yutaka_Kinjyo
parents:
diff changeset
189
Yutaka_Kinjyo
parents:
diff changeset
190 </div>
Yutaka_Kinjyo
parents:
diff changeset
191
Yutaka_Kinjyo
parents:
diff changeset
192 <div class="slide">
Yutaka_Kinjyo
parents:
diff changeset
193 <h1>TaskManager</h1>
Yutaka_Kinjyo
parents:
diff changeset
194
Yutaka_Kinjyo
parents:
diff changeset
195 TaskManager
Yutaka_Kinjyo
parents:
diff changeset
196
Yutaka_Kinjyo
parents:
diff changeset
197 <ul>
Yutaka_Kinjyo
parents:
diff changeset
198 <li>Taskは関数単位</li>
Yutaka_Kinjyo
parents:
diff changeset
199 <li>定義されたTaskは依存関係に沿って実行される</li>
Yutaka_Kinjyo
parents:
diff changeset
200 <li>Taskはある程度の数が揃った上で、TaskListにまとめられSPEに送られる。</li>
Yutaka_Kinjyo
parents:
diff changeset
201 <li>Taskはread,exec,write それぞれパイプライン化されて動く</li>
Yutaka_Kinjyo
parents:
diff changeset
202 <li>Taskに必要なデータはDMA転送で送られる。転送時間はパイプライン化によって隠される</li>
Yutaka_Kinjyo
parents:
diff changeset
203 <li>Taskの中にDMA転送命令を書くと自動ではパイプライン化されない</li>
Yutaka_Kinjyo
parents:
diff changeset
204 </ul>
Yutaka_Kinjyo
parents:
diff changeset
205
Yutaka_Kinjyo
parents:
diff changeset
206 </div>
Yutaka_Kinjyo
parents:
diff changeset
207
Yutaka_Kinjyo
parents:
diff changeset
208 <div class="slide">
Yutaka_Kinjyo
parents:
diff changeset
209 <h1>TaskMangerを使った例題</h1>
Yutaka_Kinjyo
parents:
diff changeset
210
Yutaka_Kinjyo
parents:
diff changeset
211 CeriumのTaskManager を使ったSortの例題<br>
Yutaka_Kinjyo
parents:
diff changeset
212 10万個のランダムな値をクイックソートでソートする<br>
Yutaka_Kinjyo
parents:
diff changeset
213 ソートする関数をTaskにして各SPEで実行<br><br>
Yutaka_Kinjyo
parents:
diff changeset
214
Yutaka_Kinjyo
parents:
diff changeset
215 <table border="1" cellspacing="0" cellspacing="2" cellpadding="10" align="center">
Yutaka_Kinjyo
parents:
diff changeset
216 <caption>Sortの例題</caption>
Yutaka_Kinjyo
parents:
diff changeset
217 <tr>
Yutaka_Kinjyo
parents:
diff changeset
218 <th></th>
Yutaka_Kinjyo
parents:
diff changeset
219 <th>PPEのみ</th>
Yutaka_Kinjyo
parents:
diff changeset
220 <th>SPE 1つ</th>
Yutaka_Kinjyo
parents:
diff changeset
221 <th>SPE 6つ</th>
Yutaka_Kinjyo
parents:
diff changeset
222 <!--<th>Mac(Core2Duo)</th>-->
Yutaka_Kinjyo
parents:
diff changeset
223 <th>SPE稼働率</th>
Yutaka_Kinjyo
parents:
diff changeset
224 </tr>
Yutaka_Kinjyo
parents:
diff changeset
225 <tr align="center">
Yutaka_Kinjyo
parents:
diff changeset
226 <td>QuickSort</td>
Yutaka_Kinjyo
parents:
diff changeset
227 <td>5.60s</td>
Yutaka_Kinjyo
parents:
diff changeset
228 <td>6.22s</td>
Yutaka_Kinjyo
parents:
diff changeset
229 <td>1.07s</td>
Yutaka_Kinjyo
parents:
diff changeset
230 <td>97%</td>
Yutaka_Kinjyo
parents:
diff changeset
231 <!--<td>1.76s</td>-->
Yutaka_Kinjyo
parents:
diff changeset
232 </tr>
Yutaka_Kinjyo
parents:
diff changeset
233 </table>
Yutaka_Kinjyo
parents:
diff changeset
234
Yutaka_Kinjyo
parents:
diff changeset
235 <!-- 2.13GHz -->
Yutaka_Kinjyo
parents:
diff changeset
236 </div>
Yutaka_Kinjyo
parents:
diff changeset
237
Yutaka_Kinjyo
parents:
diff changeset
238
Yutaka_Kinjyo
parents:
diff changeset
239 <div class="slide">
Yutaka_Kinjyo
parents:
diff changeset
240 <h1>アムダール則</h1>
Yutaka_Kinjyo
parents:
diff changeset
241
Yutaka_Kinjyo
parents:
diff changeset
242 プログラムの全体に対する並列化した部分の割合が低いと、マルチコアの性能がでない
Yutaka_Kinjyo
parents:
diff changeset
243 <!--プログラムの8割を並列化すると、6CPUでは3倍の性能向上しか得られない-->
Yutaka_Kinjyo
parents:
diff changeset
244
Yutaka_Kinjyo
parents:
diff changeset
245 <table height="100%" width="100%" border="0">
Yutaka_Kinjyo
parents:
diff changeset
246 <tr><td align="center" valign="middle">
Yutaka_Kinjyo
parents:
diff changeset
247 <img src="gazo/amdahl.jpg" style="width: 55%%"></td></tr>
Yutaka_Kinjyo
parents:
diff changeset
248 </table>
Yutaka_Kinjyo
parents:
diff changeset
249
Yutaka_Kinjyo
parents:
diff changeset
250 </div>
Yutaka_Kinjyo
parents:
diff changeset
251
Yutaka_Kinjyo
parents:
diff changeset
252 <div class="slide">
Yutaka_Kinjyo
parents:
diff changeset
253 <h1>RenderingEngine</h1>
Yutaka_Kinjyo
parents:
diff changeset
254
Yutaka_Kinjyo
parents:
diff changeset
255 RenderingEngineの例題<br>
13
Yutaka_Kinjyo
parents: 12
diff changeset
256 地球と月の例題
12
Yutaka_Kinjyo
parents:
diff changeset
257
Yutaka_Kinjyo
parents:
diff changeset
258 <table border="1" cellspacing="0" cellspacing="2" cellpadding="10" align="center">
Yutaka_Kinjyo
parents:
diff changeset
259 <tr>
Yutaka_Kinjyo
parents:
diff changeset
260 <th></th>
Yutaka_Kinjyo
parents:
diff changeset
261 <th>FPS</th>
13
Yutaka_Kinjyo
parents: 12
diff changeset
262 <th>mail待ちに割合</th>
Yutaka_Kinjyo
parents: 12
diff changeset
263 <th>SPE稼働率</th>
12
Yutaka_Kinjyo
parents:
diff changeset
264 <!--<th>Mac(Core2Duo)</th>-->
Yutaka_Kinjyo
parents:
diff changeset
265 </tr>
Yutaka_Kinjyo
parents:
diff changeset
266 <tr align="center">
Yutaka_Kinjyo
parents:
diff changeset
267 <td>universe</td>
Yutaka_Kinjyo
parents:
diff changeset
268 <td>17FPS</td>
13
Yutaka_Kinjyo
parents: 12
diff changeset
269 <td>72.6%</td>
12
Yutaka_Kinjyo
parents:
diff changeset
270 <td>25.4%</td>
Yutaka_Kinjyo
parents:
diff changeset
271 </tr>
Yutaka_Kinjyo
parents:
diff changeset
272 </table>
Yutaka_Kinjyo
parents:
diff changeset
273
Yutaka_Kinjyo
parents:
diff changeset
274
Yutaka_Kinjyo
parents:
diff changeset
275 </div>
Yutaka_Kinjyo
parents:
diff changeset
276
Yutaka_Kinjyo
parents:
diff changeset
277
Yutaka_Kinjyo
parents:
diff changeset
278 <div class="slide">
Yutaka_Kinjyo
parents:
diff changeset
279 <h1>RenderingEngine</h1>
Yutaka_Kinjyo
parents:
diff changeset
280
Yutaka_Kinjyo
parents:
diff changeset
281 SortとRenderingEngineの違い
Yutaka_Kinjyo
parents:
diff changeset
282
Yutaka_Kinjyo
parents:
diff changeset
283 <ul>
Yutaka_Kinjyo
parents:
diff changeset
284 <li>三種類のTaskから構成されている</li>
Yutaka_Kinjyo
parents:
diff changeset
285 <li>三つのTaskはバリア同期を行っている</li>
Yutaka_Kinjyo
parents:
diff changeset
286 <li>すべてのTaskは一度に作られない</li>
Yutaka_Kinjyo
parents:
diff changeset
287 <li>PPEにもTaskが割り振られている</li>
Yutaka_Kinjyo
parents:
diff changeset
288 <li>大量のデータを扱う(ポリゴン、テクスチャ)</li>
Yutaka_Kinjyo
parents:
diff changeset
289 </ul>
Yutaka_Kinjyo
parents:
diff changeset
290
Yutaka_Kinjyo
parents:
diff changeset
291 </div>
Yutaka_Kinjyo
parents:
diff changeset
292
Yutaka_Kinjyo
parents:
diff changeset
293
Yutaka_Kinjyo
parents:
diff changeset
294 <div class="slide">
Yutaka_Kinjyo
parents:
diff changeset
295 <h1>RenderingEngine</h1>
Yutaka_Kinjyo
parents:
diff changeset
296
Yutaka_Kinjyo
parents:
diff changeset
297 RenderingEngienの場合の問題点
Yutaka_Kinjyo
parents:
diff changeset
298
Yutaka_Kinjyo
parents:
diff changeset
299 <ul>
Yutaka_Kinjyo
parents:
diff changeset
300 <li>SPEの待ちが入る(SPEの稼働率の低下、処理性能の低下)</li>
Yutaka_Kinjyo
parents:
diff changeset
301 <ul>
Yutaka_Kinjyo
parents:
diff changeset
302 <li>MailをPPEが読み込みのを待つ</li>
Yutaka_Kinjyo
parents:
diff changeset
303 <li>他のSPEを待つ</li>
Yutaka_Kinjyo
parents:
diff changeset
304 <li>次のTaskListを待つ</li>
Yutaka_Kinjyo
parents:
diff changeset
305 </ul>
Yutaka_Kinjyo
parents:
diff changeset
306 <li>Taskはバリア同期している</li>
Yutaka_Kinjyo
parents:
diff changeset
307 </ul>
Yutaka_Kinjyo
parents:
diff changeset
308
Yutaka_Kinjyo
parents:
diff changeset
309 </div>
Yutaka_Kinjyo
parents:
diff changeset
310
Yutaka_Kinjyo
parents:
diff changeset
311 <div class="slide">
Yutaka_Kinjyo
parents:
diff changeset
312 <h1>バリア同期</h1>
Yutaka_Kinjyo
parents:
diff changeset
313 <table height="100%" width="100%" border="0">
Yutaka_Kinjyo
parents:
diff changeset
314 <tr><td align="center" valign="middle">
Yutaka_Kinjyo
parents:
diff changeset
315 <img src="gazo/renderingengine1.png" style="width: 35%%"></td></tr>
Yutaka_Kinjyo
parents:
diff changeset
316 </table>
Yutaka_Kinjyo
parents:
diff changeset
317
Yutaka_Kinjyo
parents:
diff changeset
318 RenderingEngineのTaskは、3つそれぞれバリア同期をしている。
Yutaka_Kinjyo
parents:
diff changeset
319
Yutaka_Kinjyo
parents:
diff changeset
320 </div>
Yutaka_Kinjyo
parents:
diff changeset
321
Yutaka_Kinjyo
parents:
diff changeset
322 <div class="slide">
Yutaka_Kinjyo
parents:
diff changeset
323 <h1>バリア同期</h1>
Yutaka_Kinjyo
parents:
diff changeset
324 バリア同期には二つの待ちがある
Yutaka_Kinjyo
parents:
diff changeset
325 <ul>
Yutaka_Kinjyo
parents:
diff changeset
326 <li>SPEが他のSPEを待つ時間</li>
Yutaka_Kinjyo
parents:
diff changeset
327 <li>バリア同期が完了し、PPE側で次のTaskが作られる時間</li>
Yutaka_Kinjyo
parents:
diff changeset
328 </ul><br>
Yutaka_Kinjyo
parents:
diff changeset
329
Yutaka_Kinjyo
parents:
diff changeset
330
Yutaka_Kinjyo
parents:
diff changeset
331 </div>
Yutaka_Kinjyo
parents:
diff changeset
332
Yutaka_Kinjyo
parents:
diff changeset
333 <div class="slide">
Yutaka_Kinjyo
parents:
diff changeset
334 <h1>バリア同期</h1>
Yutaka_Kinjyo
parents:
diff changeset
335 <table height="100%" width="100%" border="0">
Yutaka_Kinjyo
parents:
diff changeset
336 <tr><td align="center" valign="middle">
Yutaka_Kinjyo
parents:
diff changeset
337 <img src="gazo/renderingengine2.png" style="width: 45%%"></td></tr>
Yutaka_Kinjyo
parents:
diff changeset
338 </table>
Yutaka_Kinjyo
parents:
diff changeset
339
Yutaka_Kinjyo
parents:
diff changeset
340 この待ちを解消するためにTaskのパイプライン化を行った。
Yutaka_Kinjyo
parents:
diff changeset
341
Yutaka_Kinjyo
parents:
diff changeset
342 </div>
Yutaka_Kinjyo
parents:
diff changeset
343
Yutaka_Kinjyo
parents:
diff changeset
344
Yutaka_Kinjyo
parents:
diff changeset
345
Yutaka_Kinjyo
parents:
diff changeset
346 <div class="slide">
13
Yutaka_Kinjyo
parents: 12
diff changeset
347 <h1>RenderingEngineの構成</h1>
Yutaka_Kinjyo
parents: 12
diff changeset
348 RenderingEngineの構成
Yutaka_Kinjyo
parents: 12
diff changeset
349 <ul>
Yutaka_Kinjyo
parents: 12
diff changeset
350 <li>CreatePolygon</li>
Yutaka_Kinjyo
parents: 12
diff changeset
351 <ul>
Yutaka_Kinjyo
parents: 12
diff changeset
352 <li>モデリングデータからポリゴンを生成する(PPE)</li>
Yutaka_Kinjyo
parents: 12
diff changeset
353 </ul>
Yutaka_Kinjyo
parents: 12
diff changeset
354 <li>CreateSpan</li>
Yutaka_Kinjyo
parents: 12
diff changeset
355 <ul>
Yutaka_Kinjyo
parents: 12
diff changeset
356 <li>ポリゴンをSpanと呼ばれる水平な線に分ける(SPE)</li>
Yutaka_Kinjyo
parents: 12
diff changeset
357 </ul>
Yutaka_Kinjyo
parents: 12
diff changeset
358 <li>DrawSpan</li>
Yutaka_Kinjyo
parents: 12
diff changeset
359 <ul>
Yutaka_Kinjyo
parents: 12
diff changeset
360 <li>Spanを実際にディスプレイに描画する(SPE)</li>
Yutaka_Kinjyo
parents: 12
diff changeset
361 </ul>
Yutaka_Kinjyo
parents: 12
diff changeset
362 </ul><br>
Yutaka_Kinjyo
parents: 12
diff changeset
363
Yutaka_Kinjyo
parents: 12
diff changeset
364 RenderingEngineは3種類のTaskから構成されている
Yutaka_Kinjyo
parents: 12
diff changeset
365
Yutaka_Kinjyo
parents: 12
diff changeset
366 </div>
Yutaka_Kinjyo
parents: 12
diff changeset
367
Yutaka_Kinjyo
parents: 12
diff changeset
368
Yutaka_Kinjyo
parents: 12
diff changeset
369 <div class="slide">
Yutaka_Kinjyo
parents: 12
diff changeset
370 <h1>パイプライン化</h1>
Yutaka_Kinjyo
parents: 12
diff changeset
371
Yutaka_Kinjyo
parents: 12
diff changeset
372 地球と月を表示する例題(universe)を使用。
Yutaka_Kinjyo
parents: 12
diff changeset
373
Yutaka_Kinjyo
parents: 12
diff changeset
374 <table height="100%" width="100%" border="0">
Yutaka_Kinjyo
parents: 12
diff changeset
375 <tr><td align="center" valign="middle">
Yutaka_Kinjyo
parents: 12
diff changeset
376 <img src="gazo/universe.png" style="width: 45%%"></td></tr>
Yutaka_Kinjyo
parents: 12
diff changeset
377 </table>
Yutaka_Kinjyo
parents: 12
diff changeset
378
Yutaka_Kinjyo
parents: 12
diff changeset
379 </div>
Yutaka_Kinjyo
parents: 12
diff changeset
380
Yutaka_Kinjyo
parents: 12
diff changeset
381 <div class="slide">
Yutaka_Kinjyo
parents: 12
diff changeset
382 <h1>パイプライン化の比較</h1>
12
Yutaka_Kinjyo
parents:
diff changeset
383
13
Yutaka_Kinjyo
parents: 12
diff changeset
384 <table border="1" cellspacing="0" cellspacing="2" cellpadding="10" align="center">
Yutaka_Kinjyo
parents: 12
diff changeset
385 <caption>パイプライン化の効果(universe)</caption>
Yutaka_Kinjyo
parents: 12
diff changeset
386 <tr>
Yutaka_Kinjyo
parents: 12
diff changeset
387 <th></th>
Yutaka_Kinjyo
parents: 12
diff changeset
388 <th>FPS</th>
Yutaka_Kinjyo
parents: 12
diff changeset
389 <th>mail待ちの割合</th>
Yutaka_Kinjyo
parents: 12
diff changeset
390 <th>稼働率</th>
Yutaka_Kinjyo
parents: 12
diff changeset
391 </tr>
Yutaka_Kinjyo
parents: 12
diff changeset
392 <tr align="center">
Yutaka_Kinjyo
parents: 12
diff changeset
393 <td>Pipelineあり</td>
Yutaka_Kinjyo
parents: 12
diff changeset
394 <td>19.6FPS</td>
Yutaka_Kinjyo
parents: 12
diff changeset
395 <td>68.8%</td>
Yutaka_Kinjyo
parents: 12
diff changeset
396 <td>29%</td>
Yutaka_Kinjyo
parents: 12
diff changeset
397 </tr>
Yutaka_Kinjyo
parents: 12
diff changeset
398 <tr>
Yutaka_Kinjyo
parents: 12
diff changeset
399 <tr align="center">
Yutaka_Kinjyo
parents: 12
diff changeset
400 <td>Pipelineなし</td>
Yutaka_Kinjyo
parents: 12
diff changeset
401 <td>17FPS</td>
Yutaka_Kinjyo
parents: 12
diff changeset
402 <td>72.6%</td>
Yutaka_Kinjyo
parents: 12
diff changeset
403 <td>25.4%</td>
Yutaka_Kinjyo
parents: 12
diff changeset
404 </tr>
Yutaka_Kinjyo
parents: 12
diff changeset
405
Yutaka_Kinjyo
parents: 12
diff changeset
406 </table>
Yutaka_Kinjyo
parents: 12
diff changeset
407 </div>
Yutaka_Kinjyo
parents: 12
diff changeset
408
Yutaka_Kinjyo
parents: 12
diff changeset
409 <div class="slide">
Yutaka_Kinjyo
parents: 12
diff changeset
410 <h1>パイプライン化の比較</h1>
Yutaka_Kinjyo
parents: 12
diff changeset
411
Yutaka_Kinjyo
parents: 12
diff changeset
412 地球と月を表示する例題(universe)を使用。
Yutaka_Kinjyo
parents: 12
diff changeset
413
Yutaka_Kinjyo
parents: 12
diff changeset
414 <table border="1" cellspacing="0" cellspacing="2" cellpadding="10" align="center">
Yutaka_Kinjyo
parents: 12
diff changeset
415 <caption>パイプライン化の効果(universe)</caption>
Yutaka_Kinjyo
parents: 12
diff changeset
416 <tr>
Yutaka_Kinjyo
parents: 12
diff changeset
417 <th></th>
Yutaka_Kinjyo
parents: 12
diff changeset
418 <th>FPS</th>
Yutaka_Kinjyo
parents: 12
diff changeset
419 <th>mail待ちの割合</th>
Yutaka_Kinjyo
parents: 12
diff changeset
420 <th>稼働率</th>
Yutaka_Kinjyo
parents: 12
diff changeset
421 </tr>
Yutaka_Kinjyo
parents: 12
diff changeset
422 <tr align="center">
Yutaka_Kinjyo
parents: 12
diff changeset
423 <td>Pipelineあり</td>
Yutaka_Kinjyo
parents: 12
diff changeset
424 <td>19.6FPS</td>
Yutaka_Kinjyo
parents: 12
diff changeset
425 <td>68.8%</td>
Yutaka_Kinjyo
parents: 12
diff changeset
426 <td>29%</td>
Yutaka_Kinjyo
parents: 12
diff changeset
427 </tr>
Yutaka_Kinjyo
parents: 12
diff changeset
428 <tr>
Yutaka_Kinjyo
parents: 12
diff changeset
429 <tr align="center">
Yutaka_Kinjyo
parents: 12
diff changeset
430 <td>Pipelineなし</td>
Yutaka_Kinjyo
parents: 12
diff changeset
431 <td>17FPS</td>
Yutaka_Kinjyo
parents: 12
diff changeset
432 <td>72.6%</td>
Yutaka_Kinjyo
parents: 12
diff changeset
433 <td>25.4%</td>
Yutaka_Kinjyo
parents: 12
diff changeset
434 </tr>
Yutaka_Kinjyo
parents: 12
diff changeset
435
Yutaka_Kinjyo
parents: 12
diff changeset
436 </table>
Yutaka_Kinjyo
parents: 12
diff changeset
437 </div>
Yutaka_Kinjyo
parents: 12
diff changeset
438
Yutaka_Kinjyo
parents: 12
diff changeset
439 <div class="slide">
Yutaka_Kinjyo
parents: 12
diff changeset
440 <h1>RenderingEngine</h1>
Yutaka_Kinjyo
parents: 12
diff changeset
441
Yutaka_Kinjyo
parents: 12
diff changeset
442 RenderingEngineでは、描画するためのテクスチャをSPEに読み込む必要がある<br>
Yutaka_Kinjyo
parents: 12
diff changeset
443
Yutaka_Kinjyo
parents: 12
diff changeset
444 テクスチャをSPE内でのキャッシュした。
12
Yutaka_Kinjyo
parents:
diff changeset
445
Yutaka_Kinjyo
parents:
diff changeset
446 <ul>
13
Yutaka_Kinjyo
parents: 12
diff changeset
447 <li>DrawSpan内で、描画するためのテクスチャデータを読み込む。</li>
Yutaka_Kinjyo
parents: 12
diff changeset
448 <li>テクスチャは分割さていて、必要な時に必要な部分を読み込む</li>
Yutaka_Kinjyo
parents: 12
diff changeset
449 <li>そこで、テクスチャをキャッシュするようにした(LRU)</li>
Yutaka_Kinjyo
parents: 12
diff changeset
450 <li>テクスチャのデータはハッシュで管理する</li>
12
Yutaka_Kinjyo
parents:
diff changeset
451 </ul>
Yutaka_Kinjyo
parents:
diff changeset
452
13
Yutaka_Kinjyo
parents: 12
diff changeset
453 </div>
Yutaka_Kinjyo
parents: 12
diff changeset
454
Yutaka_Kinjyo
parents: 12
diff changeset
455
Yutaka_Kinjyo
parents: 12
diff changeset
456
Yutaka_Kinjyo
parents: 12
diff changeset
457 <div class="slide">
Yutaka_Kinjyo
parents: 12
diff changeset
458 <h1>SPEのキャッシュ効果</h1>
Yutaka_Kinjyo
parents: 12
diff changeset
459
Yutaka_Kinjyo
parents: 12
diff changeset
460 <table border="1" cellspacing="0" cellspacing="2" cellpadding="10" align="center">
Yutaka_Kinjyo
parents: 12
diff changeset
461 <caption>SPEのキャッシュの効果</caption>
Yutaka_Kinjyo
parents: 12
diff changeset
462 <tr>
Yutaka_Kinjyo
parents: 12
diff changeset
463 <th></th>
Yutaka_Kinjyo
parents: 12
diff changeset
464 <th>キャッシュなし</th>
Yutaka_Kinjyo
parents: 12
diff changeset
465 <th>キャッシュあり</th>
Yutaka_Kinjyo
parents: 12
diff changeset
466 <th>性能</th>
Yutaka_Kinjyo
parents: 12
diff changeset
467 </tr>
Yutaka_Kinjyo
parents: 12
diff changeset
468
Yutaka_Kinjyo
parents: 12
diff changeset
469 <tr align="center">
Yutaka_Kinjyo
parents: 12
diff changeset
470 <td>ball_bound</td>
Yutaka_Kinjyo
parents: 12
diff changeset
471 <td>4FPS</td>
Yutaka_Kinjyo
parents: 12
diff changeset
472 <td>30FPS</td>
Yutaka_Kinjyo
parents: 12
diff changeset
473 <td>7.5倍</td>
Yutaka_Kinjyo
parents: 12
diff changeset
474 </tr>
12
Yutaka_Kinjyo
parents:
diff changeset
475
13
Yutaka_Kinjyo
parents: 12
diff changeset
476 <tr align="center">
Yutaka_Kinjyo
parents: 12
diff changeset
477 <td>universe</td>
Yutaka_Kinjyo
parents: 12
diff changeset
478 <td>6FPS</td>
Yutaka_Kinjyo
parents: 12
diff changeset
479 <td>17FPS</td>
Yutaka_Kinjyo
parents: 12
diff changeset
480 <td>2.8倍</td>
Yutaka_Kinjyo
parents: 12
diff changeset
481 </tr>
Yutaka_Kinjyo
parents: 12
diff changeset
482
Yutaka_Kinjyo
parents: 12
diff changeset
483 <tr align="center">
Yutaka_Kinjyo
parents: 12
diff changeset
484 <td>panel</td>
Yutaka_Kinjyo
parents: 12
diff changeset
485 <td>0.2FPS</td>
Yutaka_Kinjyo
parents: 12
diff changeset
486 <td>2.6FPS</td>
Yutaka_Kinjyo
parents: 12
diff changeset
487 <td>13倍</td>
Yutaka_Kinjyo
parents: 12
diff changeset
488 </tr>
Yutaka_Kinjyo
parents: 12
diff changeset
489
Yutaka_Kinjyo
parents: 12
diff changeset
490 </table>
Yutaka_Kinjyo
parents: 12
diff changeset
491
Yutaka_Kinjyo
parents: 12
diff changeset
492 <!--実は改良前の計測にバグが。
Yutaka_Kinjyo
parents: 12
diff changeset
493 キャッシュを無効にした場合にキャッシュヒットはしないが、
Yutaka_Kinjyo
parents: 12
diff changeset
494 キャッシュ処理は行う。つまり余計な処理が入っていた。
Yutaka_Kinjyo
parents: 12
diff changeset
495 -->
Yutaka_Kinjyo
parents: 12
diff changeset
496
Yutaka_Kinjyo
parents: 12
diff changeset
497 <!--テクスチャは頻繁に読み込みが行われるので、キャッシュは有効だった。-->
Yutaka_Kinjyo
parents: 12
diff changeset
498 <!--Span一つに対して、分割されたテクスチャが複数必要。
Yutaka_Kinjyo
parents: 12
diff changeset
499 Spanの数は、1920x1080 の解像度で、最低でも8000ほどのテクスチャ読み込みが起こる。-->
12
Yutaka_Kinjyo
parents:
diff changeset
500
Yutaka_Kinjyo
parents:
diff changeset
501 </div>
Yutaka_Kinjyo
parents:
diff changeset
502
13
Yutaka_Kinjyo
parents: 12
diff changeset
503
Yutaka_Kinjyo
parents: 12
diff changeset
504 <div class="slide">
Yutaka_Kinjyo
parents: 12
diff changeset
505 <h1>SPEのキャッシュ効果</h1>
Yutaka_Kinjyo
parents: 12
diff changeset
506
Yutaka_Kinjyo
parents: 12
diff changeset
507 <table border="1" cellspacing="0" cellspacing="2" cellpadding="10" align="center">
Yutaka_Kinjyo
parents: 12
diff changeset
508 <caption>SPEのキャッシュの効果</caption>
Yutaka_Kinjyo
parents: 12
diff changeset
509 <tr>
Yutaka_Kinjyo
parents: 12
diff changeset
510 <th></th>
Yutaka_Kinjyo
parents: 12
diff changeset
511 <th>キャッシュなし</th>
Yutaka_Kinjyo
parents: 12
diff changeset
512 <th>キャッシュあり</th>
Yutaka_Kinjyo
parents: 12
diff changeset
513 <th>性能差</th>
Yutaka_Kinjyo
parents: 12
diff changeset
514 </tr>
Yutaka_Kinjyo
parents: 12
diff changeset
515
Yutaka_Kinjyo
parents: 12
diff changeset
516 <tr align="center">
Yutaka_Kinjyo
parents: 12
diff changeset
517 <td>ball_bound</td>
Yutaka_Kinjyo
parents: 12
diff changeset
518 <td>28FPS</td>
Yutaka_Kinjyo
parents: 12
diff changeset
519 <td>30FPS</td>
Yutaka_Kinjyo
parents: 12
diff changeset
520 <td>+2FPS</td>
Yutaka_Kinjyo
parents: 12
diff changeset
521 </tr>
Yutaka_Kinjyo
parents: 12
diff changeset
522
Yutaka_Kinjyo
parents: 12
diff changeset
523 <tr align="center">
Yutaka_Kinjyo
parents: 12
diff changeset
524 <td>universe</td>
Yutaka_Kinjyo
parents: 12
diff changeset
525 <td>22.9FPS</td>
Yutaka_Kinjyo
parents: 12
diff changeset
526 <td>17FPS</td>
Yutaka_Kinjyo
parents: 12
diff changeset
527 <td>-5.9FPS</td>
Yutaka_Kinjyo
parents: 12
diff changeset
528 </tr>
Yutaka_Kinjyo
parents: 12
diff changeset
529
Yutaka_Kinjyo
parents: 12
diff changeset
530 <tr align="center">
Yutaka_Kinjyo
parents: 12
diff changeset
531 <td>panel</td>
Yutaka_Kinjyo
parents: 12
diff changeset
532 <td>5.0FPS</td>
Yutaka_Kinjyo
parents: 12
diff changeset
533 <td>2.6FPS</td>
Yutaka_Kinjyo
parents: 12
diff changeset
534 <td>-2.4FPS</td>
Yutaka_Kinjyo
parents: 12
diff changeset
535 </tr>
Yutaka_Kinjyo
parents: 12
diff changeset
536
Yutaka_Kinjyo
parents: 12
diff changeset
537 </table>
Yutaka_Kinjyo
parents: 12
diff changeset
538
Yutaka_Kinjyo
parents: 12
diff changeset
539 ball_bound は扱うテクスチャが少なく、小さい
Yutaka_Kinjyo
parents: 12
diff changeset
540
Yutaka_Kinjyo
parents: 12
diff changeset
541 </div>
Yutaka_Kinjyo
parents: 12
diff changeset
542
Yutaka_Kinjyo
parents: 12
diff changeset
543
12
Yutaka_Kinjyo
parents:
diff changeset
544 <div class="slide">
Yutaka_Kinjyo
parents:
diff changeset
545 <h1>Mailbox機能</h1>
Yutaka_Kinjyo
parents:
diff changeset
546 CellのMailbox機能<br>
Yutaka_Kinjyo
parents:
diff changeset
547
Yutaka_Kinjyo
parents:
diff changeset
548 <ul>
Yutaka_Kinjyo
parents:
diff changeset
549 <li>PPEとSPEとの間を双方向で32bitのデータを受け渡す</li>
Yutaka_Kinjyo
parents:
diff changeset
550 <li>FIFO キュー構造</li>
13
Yutaka_Kinjyo
parents: 12
diff changeset
551 </ul><br>
12
Yutaka_Kinjyo
parents:
diff changeset
552 Mailboxの種類
Yutaka_Kinjyo
parents:
diff changeset
553 <ul>
Yutaka_Kinjyo
parents:
diff changeset
554 <li>Inbount Mailbox(PPE->SPE 4つ)</li>
Yutaka_Kinjyo
parents:
diff changeset
555 <li>Outbount Mailbox(SPE->PPE 一つ)</li>
Yutaka_Kinjyo
parents:
diff changeset
556 <li>Outbount interrupt Mailbox(SPE->PPE 一つ)</li>
Yutaka_Kinjyo
parents:
diff changeset
557 </ul>
Yutaka_Kinjyo
parents:
diff changeset
558
Yutaka_Kinjyo
parents:
diff changeset
559 </div>
Yutaka_Kinjyo
parents:
diff changeset
560
Yutaka_Kinjyo
parents:
diff changeset
561 <div class="slide">
Yutaka_Kinjyo
parents:
diff changeset
562 <h1>Mailbox機能</h1>
Yutaka_Kinjyo
parents:
diff changeset
563
Yutaka_Kinjyo
parents:
diff changeset
564 <table height="100%" width="100%" border="0">
Yutaka_Kinjyo
parents:
diff changeset
565 <tr><td align="center" valign="middle">
Yutaka_Kinjyo
parents:
diff changeset
566 <img src="gazo/mailbox.png" style="width: 60%%"></td></tr>
Yutaka_Kinjyo
parents:
diff changeset
567 </table>
Yutaka_Kinjyo
parents:
diff changeset
568
Yutaka_Kinjyo
parents:
diff changeset
569 </div>
Yutaka_Kinjyo
parents:
diff changeset
570
Yutaka_Kinjyo
parents:
diff changeset
571 <div class="slide">
Yutaka_Kinjyo
parents:
diff changeset
572 <h1>Mailbox機能</h1>
Yutaka_Kinjyo
parents:
diff changeset
573 SPE側からTaskが一つ実行完了する度に、実行完了のMailをOutboxに書きこむ<br>
Yutaka_Kinjyo
parents:
diff changeset
574
Yutaka_Kinjyo
parents:
diff changeset
575 <ul>
Yutaka_Kinjyo
parents:
diff changeset
576 <li>Outboxに既にMailが書きこまれている場合に、PPE側から読み込まれるまで、SPEは待つ(Cellの仕様)</li>
Yutaka_Kinjyo
parents:
diff changeset
577 <li>PPE側のMailチェックが追いつかない場合がある。</li>
Yutaka_Kinjyo
parents:
diff changeset
578 <li>その間、SPEは何もしないので、処理速度の低下につながる</li>
Yutaka_Kinjyo
parents:
diff changeset
579 </ul><br>
Yutaka_Kinjyo
parents:
diff changeset
580
Yutaka_Kinjyo
parents:
diff changeset
581 そこで、Outboxに既に読み込まれていないMailがあった場合に、いったん、別のキューに追加する。(MailQueue)
Yutaka_Kinjyo
parents:
diff changeset
582
Yutaka_Kinjyo
parents:
diff changeset
583
Yutaka_Kinjyo
parents:
diff changeset
584 </div>
Yutaka_Kinjyo
parents:
diff changeset
585
Yutaka_Kinjyo
parents:
diff changeset
586 <div class="slide">
Yutaka_Kinjyo
parents:
diff changeset
587 <h1>MailQueue</h1>
Yutaka_Kinjyo
parents:
diff changeset
588
Yutaka_Kinjyo
parents:
diff changeset
589 <ul>
Yutaka_Kinjyo
parents:
diff changeset
590 <li>TaskListを消化し、次のTaskListを要求する時に、MailQueueにMailが残っている場合はそれを先に書きだす</li>
Yutaka_Kinjyo
parents:
diff changeset
591 <li>PPE側はMailのチェックをMailが無くなるまでループする</li>
Yutaka_Kinjyo
parents:
diff changeset
592 <li>PPEはMailがない場合に、自分の仕事に戻る。</li>
Yutaka_Kinjyo
parents:
diff changeset
593 <li>今のPPEのMailチェックの仕様には、一度にMailを書きだすのが向いている</li>
Yutaka_Kinjyo
parents:
diff changeset
594 </ul>
Yutaka_Kinjyo
parents:
diff changeset
595
Yutaka_Kinjyo
parents:
diff changeset
596 </ul>
Yutaka_Kinjyo
parents:
diff changeset
597
Yutaka_Kinjyo
parents:
diff changeset
598 </div>
Yutaka_Kinjyo
parents:
diff changeset
599
Yutaka_Kinjyo
parents:
diff changeset
600 <div class="slide">
Yutaka_Kinjyo
parents:
diff changeset
601 <h1>MailQueueの効果</h1>
Yutaka_Kinjyo
parents:
diff changeset
602
Yutaka_Kinjyo
parents:
diff changeset
603 <table border="1" cellspacing="0" cellspacing="2" cellpadding="10" align="center">
Yutaka_Kinjyo
parents:
diff changeset
604 <caption>MailQueueの効果</caption>
Yutaka_Kinjyo
parents:
diff changeset
605 <tr>
Yutaka_Kinjyo
parents:
diff changeset
606 <th></th>
Yutaka_Kinjyo
parents:
diff changeset
607 <th>改良前</th>
Yutaka_Kinjyo
parents:
diff changeset
608 <th>改良後</th>
Yutaka_Kinjyo
parents:
diff changeset
609 <th>性能</th>
Yutaka_Kinjyo
parents:
diff changeset
610 </tr>
Yutaka_Kinjyo
parents:
diff changeset
611 <tr align="center">
Yutaka_Kinjyo
parents:
diff changeset
612 <td>universe</td>
Yutaka_Kinjyo
parents:
diff changeset
613 <td>16FPS</td>
Yutaka_Kinjyo
parents:
diff changeset
614 <td>18.5FPS</td>
Yutaka_Kinjyo
parents:
diff changeset
615 <td>12%向上</td>
Yutaka_Kinjyo
parents:
diff changeset
616 </tr>
Yutaka_Kinjyo
parents:
diff changeset
617 </table>
Yutaka_Kinjyo
parents:
diff changeset
618
Yutaka_Kinjyo
parents:
diff changeset
619 地球と月を表示する例題を使って計測した。
Yutaka_Kinjyo
parents:
diff changeset
620
Yutaka_Kinjyo
parents:
diff changeset
621 </div>
13
Yutaka_Kinjyo
parents: 12
diff changeset
622 <!--
12
Yutaka_Kinjyo
parents:
diff changeset
623 <div class="slide">
Yutaka_Kinjyo
parents:
diff changeset
624 <h1>Ceriumの改良点の概要</h1>
Yutaka_Kinjyo
parents:
diff changeset
625
Yutaka_Kinjyo
parents:
diff changeset
626 Ceriumの改良点の概要
Yutaka_Kinjyo
parents:
diff changeset
627
Yutaka_Kinjyo
parents:
diff changeset
628 <ul>
Yutaka_Kinjyo
parents:
diff changeset
629 <li>TaskManager</li>
Yutaka_Kinjyo
parents:
diff changeset
630 <ul>
Yutaka_Kinjyo
parents:
diff changeset
631 <li>Taskの同期にはCellのMail機能を使う</li>
Yutaka_Kinjyo
parents:
diff changeset
632 <li>Mailの同期するタイミングの改良</li>
Yutaka_Kinjyo
parents:
diff changeset
633 <ul>
Yutaka_Kinjyo
parents:
diff changeset
634 <li><s>MailQueue</s></li>
Yutaka_Kinjyo
parents:
diff changeset
635 <li>TaskArray</li>
Yutaka_Kinjyo
parents:
diff changeset
636 </ul>
Yutaka_Kinjyo
parents:
diff changeset
637 </ul>
Yutaka_Kinjyo
parents:
diff changeset
638
Yutaka_Kinjyo
parents:
diff changeset
639 <li>RenderingEngine</li>
Yutaka_Kinjyo
parents:
diff changeset
640 <ul>
Yutaka_Kinjyo
parents:
diff changeset
641 <li>Taskのパイプライン化</li>
Yutaka_Kinjyo
parents:
diff changeset
642 <li>扱う画像をSPE側でキャッシュする</li>
Yutaka_Kinjyo
parents:
diff changeset
643 </ul>
Yutaka_Kinjyo
parents:
diff changeset
644
Yutaka_Kinjyo
parents:
diff changeset
645 </ul>
Yutaka_Kinjyo
parents:
diff changeset
646
Yutaka_Kinjyo
parents:
diff changeset
647 </div>
13
Yutaka_Kinjyo
parents: 12
diff changeset
648 -->
12
Yutaka_Kinjyo
parents:
diff changeset
649
Yutaka_Kinjyo
parents:
diff changeset
650 <div class="slide">
Yutaka_Kinjyo
parents:
diff changeset
651 <h1>TaskArray</h1>
Yutaka_Kinjyo
parents:
diff changeset
652 Task毎のMailは、Task同士の依存関係を解決するために用いている。
Yutaka_Kinjyo
parents:
diff changeset
653
Yutaka_Kinjyo
parents:
diff changeset
654 <ul>
Yutaka_Kinjyo
parents:
diff changeset
655 <li>依存関係はグループ化できる</li>
Yutaka_Kinjyo
parents:
diff changeset
656 <li>TaskArrayを用いて複数のTaskのMailを一つに扱う</li>
13
Yutaka_Kinjyo
parents: 12
diff changeset
657 </ul><br>
12
Yutaka_Kinjyo
parents:
diff changeset
658
Yutaka_Kinjyo
parents:
diff changeset
659 Mailの数を減らせるので、Mailのための処理が減る。その分処理速度が上がる
Yutaka_Kinjyo
parents:
diff changeset
660
Yutaka_Kinjyo
parents:
diff changeset
661 </div>
Yutaka_Kinjyo
parents:
diff changeset
662
Yutaka_Kinjyo
parents:
diff changeset
663 <div class="slide">
Yutaka_Kinjyo
parents:
diff changeset
664 <h1>TaskArray</h1>
Yutaka_Kinjyo
parents:
diff changeset
665
Yutaka_Kinjyo
parents:
diff changeset
666 <table border="1" cellspacing="0" cellspacing="2" cellpadding="10" align="center">
Yutaka_Kinjyo
parents:
diff changeset
667 <caption>TaskArrayの効果(universe)</caption>
Yutaka_Kinjyo
parents:
diff changeset
668 <tr>
Yutaka_Kinjyo
parents:
diff changeset
669 <th></th>
Yutaka_Kinjyo
parents:
diff changeset
670 <th>改良前</th>
Yutaka_Kinjyo
parents:
diff changeset
671 <th>改良後</th>
Yutaka_Kinjyo
parents:
diff changeset
672 <th>性能</th>
Yutaka_Kinjyo
parents:
diff changeset
673 </tr>
Yutaka_Kinjyo
parents:
diff changeset
674 <tr align="center">
Yutaka_Kinjyo
parents:
diff changeset
675 <td>universe</td>
Yutaka_Kinjyo
parents:
diff changeset
676 <td>16FPS</td>
Yutaka_Kinjyo
parents:
diff changeset
677 <td>18.5FPS</td>
Yutaka_Kinjyo
parents:
diff changeset
678 <td>12%向上</td>
Yutaka_Kinjyo
parents:
diff changeset
679 </tr>
Yutaka_Kinjyo
parents:
diff changeset
680 </table>
Yutaka_Kinjyo
parents:
diff changeset
681
Yutaka_Kinjyo
parents:
diff changeset
682 </div>
Yutaka_Kinjyo
parents:
diff changeset
683
Yutaka_Kinjyo
parents:
diff changeset
684
Yutaka_Kinjyo
parents:
diff changeset
685 <div class="slide">
Yutaka_Kinjyo
parents:
diff changeset
686 <h1>MailQueueとTaskArray</h1>
Yutaka_Kinjyo
parents:
diff changeset
687
Yutaka_Kinjyo
parents:
diff changeset
688 <table border="1" cellspacing="0" cellspacing="2" cellpadding="8" align="center">
Yutaka_Kinjyo
parents:
diff changeset
689 <caption>MailQueueとTaskArrayの効果(universe)</caption>
Yutaka_Kinjyo
parents:
diff changeset
690 <tr>
Yutaka_Kinjyo
parents:
diff changeset
691 <th>TaskArray</th>
Yutaka_Kinjyo
parents:
diff changeset
692 <th>MailQueue</th>
Yutaka_Kinjyo
parents:
diff changeset
693 <th>FPS</th>
Yutaka_Kinjyo
parents:
diff changeset
694 <th>性能</th>
Yutaka_Kinjyo
parents:
diff changeset
695 </tr>
Yutaka_Kinjyo
parents:
diff changeset
696 <tr align="center">
Yutaka_Kinjyo
parents:
diff changeset
697 <td>あり</td>
Yutaka_Kinjyo
parents:
diff changeset
698 <td>あり</td>
Yutaka_Kinjyo
parents:
diff changeset
699 <td>20FPS</td>
Yutaka_Kinjyo
parents:
diff changeset
700 <td>22%向上</td>
Yutaka_Kinjyo
parents:
diff changeset
701 </tr>
Yutaka_Kinjyo
parents:
diff changeset
702 <tr align="center">
Yutaka_Kinjyo
parents:
diff changeset
703 <td>あり</td>
Yutaka_Kinjyo
parents:
diff changeset
704 <td>なし</td>
Yutaka_Kinjyo
parents:
diff changeset
705 <td>18.5FPS</td>
Yutaka_Kinjyo
parents:
diff changeset
706 <td>12%向上</td>
Yutaka_Kinjyo
parents:
diff changeset
707 </tr>
Yutaka_Kinjyo
parents:
diff changeset
708 <tr align="center">
Yutaka_Kinjyo
parents:
diff changeset
709 <td>なし</td>
Yutaka_Kinjyo
parents:
diff changeset
710 <td>あり</td>
Yutaka_Kinjyo
parents:
diff changeset
711 <td>18.5FPS</td>
Yutaka_Kinjyo
parents:
diff changeset
712 <td>12%向上</td>
Yutaka_Kinjyo
parents:
diff changeset
713 </tr>
Yutaka_Kinjyo
parents:
diff changeset
714 <tr align="center">
Yutaka_Kinjyo
parents:
diff changeset
715 <td>なし</td>
Yutaka_Kinjyo
parents:
diff changeset
716 <td>なし</td>
Yutaka_Kinjyo
parents:
diff changeset
717 <td>16.4FPS</td>
Yutaka_Kinjyo
parents:
diff changeset
718 <td>0%向上</td>
Yutaka_Kinjyo
parents:
diff changeset
719 </tr>
Yutaka_Kinjyo
parents:
diff changeset
720 </table>
Yutaka_Kinjyo
parents:
diff changeset
721
Yutaka_Kinjyo
parents:
diff changeset
722 </div>
Yutaka_Kinjyo
parents:
diff changeset
723
Yutaka_Kinjyo
parents:
diff changeset
724
Yutaka_Kinjyo
parents:
diff changeset
725 <div class="slide">
Yutaka_Kinjyo
parents:
diff changeset
726 <h1>OpenGLとの比較</h1>
Yutaka_Kinjyo
parents:
diff changeset
727 OpenGL(Open Graphics Library)とは、Silicon Graphics社が開発した、3Dグラフィックス処理の
Yutaka_Kinjyo
parents:
diff changeset
728 ためのプログラミングインターフェース。Taskに分割され、SPEを使用したCeriumと、PPEのみで動作
13
Yutaka_Kinjyo
parents: 12
diff changeset
729 するOpenGLとで、処理速度の比較をした。<br><br>
Yutaka_Kinjyo
parents: 12
diff changeset
730
Yutaka_Kinjyo
parents: 12
diff changeset
731 比較する例題には学生が実験中に作成したSuperDandyを用いた。
12
Yutaka_Kinjyo
parents:
diff changeset
732 </div>
Yutaka_Kinjyo
parents:
diff changeset
733
Yutaka_Kinjyo
parents:
diff changeset
734 <div class="slide">
Yutaka_Kinjyo
parents:
diff changeset
735 <h1>OpenGLとの比較</h1>
Yutaka_Kinjyo
parents:
diff changeset
736
Yutaka_Kinjyo
parents:
diff changeset
737 <table border="1" cellspacing="0" cellspacing="2" cellpadding="10" align="center">
Yutaka_Kinjyo
parents:
diff changeset
738 <tr>
Yutaka_Kinjyo
parents:
diff changeset
739 <th></th>
Yutaka_Kinjyo
parents:
diff changeset
740 <th>OpenGL</th>
Yutaka_Kinjyo
parents:
diff changeset
741 <th>Cerium</th>
Yutaka_Kinjyo
parents:
diff changeset
742 <th>性能差</th>
Yutaka_Kinjyo
parents:
diff changeset
743 </tr>
Yutaka_Kinjyo
parents:
diff changeset
744 <tr align="center">
Yutaka_Kinjyo
parents:
diff changeset
745 <td>dandy</td>
Yutaka_Kinjyo
parents:
diff changeset
746 <td>17.5FPS</td>
Yutaka_Kinjyo
parents:
diff changeset
747 <td>49.5FPS</td>
Yutaka_Kinjyo
parents:
diff changeset
748 <td>2.9倍</td>
Yutaka_Kinjyo
parents:
diff changeset
749 </tr>
Yutaka_Kinjyo
parents:
diff changeset
750 </table>
Yutaka_Kinjyo
parents:
diff changeset
751
Yutaka_Kinjyo
parents:
diff changeset
752 コア一つを使用するOpenGLに比べ、Cerium では2.9倍の性能向上が見られた。
Yutaka_Kinjyo
parents:
diff changeset
753 SPEを活用、待ち時間の短縮を行い、性能向上がみれた。
Yutaka_Kinjyo
parents:
diff changeset
754
Yutaka_Kinjyo
parents:
diff changeset
755 </div>
Yutaka_Kinjyo
parents:
diff changeset
756
Yutaka_Kinjyo
parents:
diff changeset
757 <div class="slide">
Yutaka_Kinjyo
parents:
diff changeset
758 <h1>まとめ</h1>
Yutaka_Kinjyo
parents:
diff changeset
759
Yutaka_Kinjyo
parents:
diff changeset
760 本研究ではゲームフレームワーク Cerium TaskManager の改良を行った。
Yutaka_Kinjyo
parents:
diff changeset
761 特にCell上において、SPEの稼働率に注意する必要があった。
Yutaka_Kinjyo
parents:
diff changeset
762
Yutaka_Kinjyo
parents:
diff changeset
763 SPE、PPE間のデータのやり取りにMail通知を用いている。SPEはMailの書き込みの際に待ちが発生する
Yutaka_Kinjyo
parents:
diff changeset
764
Yutaka_Kinjyo
parents:
diff changeset
765 <ul>
Yutaka_Kinjyo
parents:
diff changeset
766 <li>MailQueue</li>
Yutaka_Kinjyo
parents:
diff changeset
767 <li>TaskArray</li>
13
Yutaka_Kinjyo
parents: 12
diff changeset
768 </ul><br>
12
Yutaka_Kinjyo
parents:
diff changeset
769
Yutaka_Kinjyo
parents:
diff changeset
770 で待ち時間の削減ができる
Yutaka_Kinjyo
parents:
diff changeset
771
Yutaka_Kinjyo
parents:
diff changeset
772 </div>
Yutaka_Kinjyo
parents:
diff changeset
773
Yutaka_Kinjyo
parents:
diff changeset
774 <div class="slide">
Yutaka_Kinjyo
parents:
diff changeset
775 <h1>まとめ</h1>
Yutaka_Kinjyo
parents:
diff changeset
776
Yutaka_Kinjyo
parents:
diff changeset
777 RenderingEngineにおいて、Taskがバリア同期をしている。バリア同期にも待ちが発生する
Yutaka_Kinjyo
parents:
diff changeset
778
Yutaka_Kinjyo
parents:
diff changeset
779 <ul>
Yutaka_Kinjyo
parents:
diff changeset
780 <li>Task実行をパイプライン化</li>
13
Yutaka_Kinjyo
parents: 12
diff changeset
781 </ul><br>
12
Yutaka_Kinjyo
parents:
diff changeset
782
Yutaka_Kinjyo
parents:
diff changeset
783 SPEの待ち時間を解消できる。頻繁に扱うデータはSPE内でキャッシュするのがよい
Yutaka_Kinjyo
parents:
diff changeset
784
Yutaka_Kinjyo
parents:
diff changeset
785 </div>
Yutaka_Kinjyo
parents:
diff changeset
786
Yutaka_Kinjyo
parents:
diff changeset
787
Yutaka_Kinjyo
parents:
diff changeset
788 <div class="slide">
Yutaka_Kinjyo
parents:
diff changeset
789 <h1>依存関係の話</h1>
Yutaka_Kinjyo
parents:
diff changeset
790 稼働率を維持するためにパイプライン化がある
Yutaka_Kinjyo
parents:
diff changeset
791
Yutaka_Kinjyo
parents:
diff changeset
792 <ul>
Yutaka_Kinjyo
parents:
diff changeset
793 <li>扱うデータの依存性から、Pipelineを自動で生成できるはず</li>
Yutaka_Kinjyo
parents:
diff changeset
794 <li>TaskArrayもデータから自動でできるはず。</li>
Yutaka_Kinjyo
parents:
diff changeset
795 <li>データはSegmentとして扱う</li>
Yutaka_Kinjyo
parents:
diff changeset
796 </ui>
Yutaka_Kinjyo
parents:
diff changeset
797
Yutaka_Kinjyo
parents:
diff changeset
798 </div>
Yutaka_Kinjyo
parents:
diff changeset
799
Yutaka_Kinjyo
parents:
diff changeset
800 <div class="slide">
Yutaka_Kinjyo
parents:
diff changeset
801 <h1>Codeload</h1>
Yutaka_Kinjyo
parents:
diff changeset
802
Yutaka_Kinjyo
parents:
diff changeset
803 Taskを事前に全部ロードしてる
Yutaka_Kinjyo
parents:
diff changeset
804
Yutaka_Kinjyo
parents:
diff changeset
805 <ul>
Yutaka_Kinjyo
parents:
diff changeset
806 <li>SPEのLSは256KB</li>
Yutaka_Kinjyo
parents:
diff changeset
807 <li>大量のコードを入れるといっぱいになる</li>
Yutaka_Kinjyo
parents:
diff changeset
808 <li>必要な時に必要な分を予測してSPEにロードするのがよい</li>
Yutaka_Kinjyo
parents:
diff changeset
809 </ul>
Yutaka_Kinjyo
parents:
diff changeset
810
Yutaka_Kinjyo
parents:
diff changeset
811 </div>
Yutaka_Kinjyo
parents:
diff changeset
812
Yutaka_Kinjyo
parents:
diff changeset
813 <div class="slide">
Yutaka_Kinjyo
parents:
diff changeset
814 <h1>Segment</h1>
Yutaka_Kinjyo
parents:
diff changeset
815
Yutaka_Kinjyo
parents:
diff changeset
816 データはすべてSegmentという形にして、SPEに必要な分を予測、読み込みするのがよい。<br>
Yutaka_Kinjyo
parents:
diff changeset
817 テクスチャのように頻繁に扱うデータはキャッシュする<br>
Yutaka_Kinjyo
parents:
diff changeset
818
Yutaka_Kinjyo
parents:
diff changeset
819 </div>
Yutaka_Kinjyo
parents:
diff changeset
820
Yutaka_Kinjyo
parents:
diff changeset
821
Yutaka_Kinjyo
parents:
diff changeset
822
Yutaka_Kinjyo
parents:
diff changeset
823 <div class="slide">
Yutaka_Kinjyo
parents:
diff changeset
824 <h1>END</h1>
Yutaka_Kinjyo
parents:
diff changeset
825
Yutaka_Kinjyo
parents:
diff changeset
826 /*end*/
Yutaka_Kinjyo
parents:
diff changeset
827
Yutaka_Kinjyo
parents:
diff changeset
828 </div>
Yutaka_Kinjyo
parents:
diff changeset
829
Yutaka_Kinjyo
parents:
diff changeset
830
Yutaka_Kinjyo
parents:
diff changeset
831 </ul>
Yutaka_Kinjyo
parents:
diff changeset
832
Yutaka_Kinjyo
parents:
diff changeset
833 <div class="handout">
Yutaka_Kinjyo
parents:
diff changeset
834 [any material that should appear in print but not on the slide]
Yutaka_Kinjyo
parents:
diff changeset
835 </div>
Yutaka_Kinjyo
parents:
diff changeset
836 </div>
Yutaka_Kinjyo
parents:
diff changeset
837
Yutaka_Kinjyo
parents:
diff changeset
838
Yutaka_Kinjyo
parents:
diff changeset
839 </div>
Yutaka_Kinjyo
parents:
diff changeset
840
Yutaka_Kinjyo
parents:
diff changeset
841 </body>
Yutaka_Kinjyo
parents:
diff changeset
842 </html>