olafurw / poke-fighting-rust

Application that simulates a large grid of Pokémon types fighting each other.
24 stars 3 forks source link

Added command line option to measure frame rate #10

Closed palant closed 2 years ago

palant commented 2 years ago

I couldn’t find a way to make nannou or mesa measure the frame rate, so here is a simple manual solution. It calculates the frame rate after every 100 frames. I would have preferred constant time intervals but I also wanted this code to have as little own impact on the performance as possible.