
modern hardware resources, resulting in improved ef-
ficiency and scalability for spatial hashing tasks.
To validate the effectiveness of our approach, we
implemented a new memory storage strategy for pivot
tables, introduced parallelization techniques, and con-
ducted a comparative analysis against existing imple-
mentations. Our findings highlight the need for a
more efficient data structure, as we identified RAM
I/O operations rather than CPU power as the primary
bottleneck of the algorithm.
Additionally, our study presents observations re-
lated to simulation time increases with the expansion
of the simulation space and memory allocation. We
discuss the worst-case scenario for the chunked algo-
rithm and emphasize that memory usage varies sig-
nificantly in real-world simulations, particularly when
dealing with concentrated groups of objects.
Overall, this research addresses the limitations of
current spatial hashing techniques and proposes an ef-
ficient solution for large-scale simulations by mitigat-
ing memory consumption, facilitating parallelization,
and optimizing proximity queries.
Nevertheless, there are potential ways for further
improvements in our algorithm. For instance, explor-
ing the possibility of leveraging GPU computations,
because the algorithm is designed in a way to sup-
port GPU integration. Additionally, making slight
modifications to enable the utilization of SIMD op-
erations could also enhance performance. These im-
provements could be explored in future research en-
deavors.
REFERENCES
Buckland (2005). Programming Game AI by Example.
Wordware game developer’s library.
Hastings, E. and Mesit, J. (2005). Optimization of large-
scale, real-time simulations by spatial hashing. In
Proceedings of Summer Computer Simulation Confer-
ence, volume 37(4) of SCSC’05, pages 9–17. Society
for Modeling & Simulation International (SCS).
Hastings, E., Mesit, J., and Guha, R. K. (2004). T-
collide: A temporal, real-time collision detection
technique for bounded objects. In Proceedings of
the 5th Game-On International Conference on Com-
puter Games: Artificial Intelligence, Design and Ed-
ucation (CGAIDE), pages 41–48. The University of
Wolverhampton, School of Computing and Informa-
tion Technology Printed in Wolverhampton, UK.
Knievel, C., Pejic, A., Krüger, L., Ziegler, C., and Adamy, J.
(2023). Boids flocking algorithm for situation assess-
ment of driver assistance systems. IEEE Open Journal
of Intelligent Transportation Systems, 4:71–82.
Kondo, R. and Kanai, T. (2004). Interactive physically-
based animation system for dense meshes. In Pro-
ceedings of Eurographics 2004, pages 93–96. The Eu-
rographics Association.
Lo, M.-L. and Ravishankar, C. V. (1996). Spatial hash-
joins. In Proceedings of the 1996 ACM SIGMOD In-
ternational Conference on Management of Data, vol-
ume 25 of SIGMOD’96, page 247–258. ACM.
Mesit, J., Guha, R. K., and Hastings, E. (2004). Optimized
collision detection for flexible objects in a large envi-
ronment. In Proceedings of the 5th Game-On Inter-
national Conference on Computer Games: Artificial
Intelligence, Design and Education (CGAIDE), pages
49–54. The University of Wolverhampton, School of
Computing and Information Technology Printed in
Wolverhampton, UK.
Pozzer, C., De, C., Pahins, C., Heldal, I., Mellin, J.,
and Gustavsson, P. (2014). A hash table construc-
tion algorithm for spatial hashing based on linear
memory. In Proceedings of the 11th Conference
on Advances in Computer Entertainment Technology
(ACE’14), ACE’14. Association for Computing Ma-
chinery.
Teschner, M., Heidelberger, B., Müller, M., Pomerantes, D.,
and Gross, M. H. (2003). Optimized spatial hashing
for collision detection of deformable objects. In The
8th International Fall Workshop on Vision, Modeling,
and Visualization, VMV, pages 47–54. Aka GmbH.
Zhang, J., Mamoulis, N., Papadias, D., and Tao, Y. (2004).
All-nearest-neighbors queries in spatial databases. In
Proceedings of the 16th International Conference on
Scientific and Statistical Database Management (SS-
DBM’04). IEEE Computer Society.
ICAART 2024 - 16th International Conference on Agents and Artificial Intelligence
358