>>106378106 (OP)
https://store.steampowered.com/app/2495130/Pixelpusher/
https://gitlab.com/-/snippets/4817016
>From the summary statistics at the bottom, we have average garbage collection pause times of < 1 ms and maximum pause times of about 5 ms.
For reference, since we update and display the game state 120 times a second, we have a time budget of 8.3 ms per frame.
A pause of 5 ms would be over 50% of our time budget, which would be unacceptable.
>However, looking above at the statistics for individual garbage collections,
we see that all of the longest pauses occur at the very beginning when the game is starting up, before the start of gameplay.
The pauses during gameplay are shorter: out of 1382 garbage collections, 1 took 2 ms (of elapsed wall clock time), 6 took 1 ms, and the rest took 0 ms.
Uncle Bob BTFO.