Identifying and Alleviating Performance Bottlenecks for Boid-Based Systems
2024 (English)Independent thesis Advanced level (degree of Master (Two Years)), 28 HE credits
Student thesis
Abstract [en]
Boid-based systems are typically used to simulate flocks of animals in nature, such as avian flocks or fish schools. The naïve implementation has a time complexity of $O(n^2)$, as each boid perceives and reacts to every other, and thus scales poorly with flock size. Several optimizations and strategies have previously been explored to mitigate this fact, such as space partitioning of the game world where the simulation runs. This thesis explores the performance bottlenecks in an implementation utilizing some of these optimizations, mainly spatial hashing.
The findings indicate that the major performance bottleneck is the aggregation of positions and headings required to enact the boid steering behaviors. This performance bottleneck can be alleviated by spatially hashing the game world, using a cell-based neighborhood, and parallelizing the computations over these cells. In addition, parameters controlling the simulation can be tweaked and upper-bound limits imposed on the number of interactions to further improve performance.
Place, publisher, year, edition, pages
2024. , p. 39
Keywords [en]
boid, fish school simulation, bottleneck, performance, game development
National Category
Computer Sciences
Identifiers
URN: urn:nbn:se:liu:diva-204893ISRN: LiTH-ISY-EX--24/5664--SEOAI: oai:DiVA.org:liu-204893DiVA, id: diva2:1871288
External cooperation
Pugstorm AB
Subject / course
Computer science
Presentation
2024-06-07, Systemet, Campus Valla, Linköping, 13:15 (English)
Supervisors
Examiners
2024-06-172024-06-172024-06-17Bibliographically approved