tiny-world icon indicating copy to clipboard operation
tiny-world copied to clipboard

Profile the game loop

Open mlange-42 opened this issue 1 year ago • 2 comments

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.

mlange-42 avatar Mar 17 '24 01:03 mlange-42

How would you go about profiling? Would be pprof enough in that case?

Ecostack avatar Mar 18 '24 01:03 Ecostack

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.

mlange-42 avatar Mar 18 '24 02:03 mlange-42