ThalesGroup / kessler-game

Kessler is a simulation environment loosely modeled after our internal project PsiBee and the external project Fuzzy Asteroids. The game has ships that shoot bullets at asteroids to gain score. Ships can collide with asteroids and other ships and lose lives.
https://github.com/ThalesGroup/kessler-game
Apache License 2.0
8 stars 5 forks source link

Optimization: Speed up string concatenation in UE graphics update #47

Closed Jie-F closed 6 months ago

Jie-F commented 7 months ago

Currently there's a string that repeatedly gets appended to. In Python, when strings get appended to, a new string object is created. By appending to a list and converting the list to a string all at the end, this can be sped up by a factor of 5X.