DocumentCode
1829316
Title
A Design Pattern for Parallel Programming of Games
Author
AlBahnassi, W. ; Mudur, S.P. ; Goswami, Debkalpa
Author_Institution
Dept. of Comput. Sci. & Software Eng., Concordia Univ. & Electron. Arts, Montreal, QC, Canada
fYear
2012
fDate
25-27 June 2012
Firstpage
1007
Lastpage
1014
Abstract
We present a new design pattern, Sayl, for parallel programming of games and real-time simulation applications to make effective use of the multiple cores of CPUs which are becoming commonplace in today´s host machines. Sayl is a specialization of the more generic Task Parallelism pattern. The specialization addresses three important requirements of programs in this domain - heterogeneity of tasks, data flow type dependency amongst tasks, and dynamically changing set of active tasks in different frames of the game. Our main claim is that use of Sayl involves less programmer work. Further, by enabling the creation of dynamic task graphs, Sayl can enable parallel execution of tasks both within and across frames; the latter is one significant advantage of Sayl which seems not possible in most other parallelization approaches targeted to this domain. Sayl was used in a case study to convert the serial code of a small game into a parallel version and compared with an-other game parallelization framework. The Sayl version was simpler to code and had better run-time performance.
Keywords
computer games; data flow computing; multiprocessing systems; parallel programming; CPU; Sayl version; data flow type dependency; design pattern; dynamic task graphs; game parallelization framework; generic task parallelism pattern; host machines; multiple cores; parallel execution; parallel programming; parallel serial code version; real-time simulation applications; task heterogeneity; Containers; Games; Instruction sets; Loading; Parallel processing; Programming; Software engineering; Parallel programming design pattern; data-flow; dynamic task graph; games; real-time simulation;
fLanguage
English
Publisher
ieee
Conference_Titel
High Performance Computing and Communication & 2012 IEEE 9th International Conference on Embedded Software and Systems (HPCC-ICESS), 2012 IEEE 14th International Conference on
Conference_Location
Liverpool
Print_ISBN
978-1-4673-2164-8
Type
conf
DOI
10.1109/HPCC.2012.147
Filename
6332283
Link To Document