med-material / Whack_A_Mole_VR

Whack-A-Mole in VR
MIT License
3 stars 16 forks source link

SampleLogger : Fix performance issue by pausing the game multiple times #269

Closed tcaruchet closed 1 year ago

tcaruchet commented 1 year ago

I've just created a state into SampleLogger because when you pause the game with the built-in button : it increase it's calls to the GC by 36% constantly every time. This cause terrible lags during playing.

This updates is to avoid a new instantiation of SampleLogger...

But we may need to create a singleton in earlier version I guess by following this ref, for example.