jcarrier0026 / dbz

simple dbz game
1 stars 0 forks source link

Converted the Perf object to a singleton. #21

Closed mrmarkwell closed 4 years ago

mrmarkwell commented 4 years ago

The perf object is now a static singleton that can be accessed with the static method Perf::GetPerf() from anywhere. It is not thread-safe: if we start using multiple threads this will need to be mutex-guarded.