Profile the game loop
mlange-42 opened this issue · 2 comments
mlange-42 commented
Not that there are any perfoemance issues... However, it would be interesting to check where the game spends the most time, i.e. to save a bit of energy.
Ecostack commented
How would you go about profiling? Would be pprof
enough in that case?
mlange-42 commented
Yes, that's what I was intending. For examples, see the Arche profiling stuff. Particularly the main files nested under https://github.com/mlange-42/arche/tree/main/benchmark/profile.
I usually use the graph visualization. Flame graph might also be helpful.