Score, FixedUpdate and Update
Hello, I made my first game and I noticed I made a mistake, when counting the score I was incrementing 1 point for every update call, then I remembered Update depends on frame rate of the device, so it's kinda not constant. So I thought: solution 1: add 1 point every FixedUpdate so that it is constant, ( but this seems not good practice since it's said to use only rigidbody stuff on fixedupdate)
solution 2: count the time interval in each update call and add points , but I don't know exactly how to keep it around 1point per 0.02 sec , maybe do some kind of proportion?
Also, In a simple game that needs instant screen reaction to touch, should I increment fixed update to something lke 60calls/s and limit frame rate of screen to 60 also? or what value should I give to each one? To lessen small delays on touch/screen reaction
Your answer
Follow this Question
Related Questions
Instantiation Breaks Update Function 0 Answers
Further understanding Updated() vs FixedUpdate() 0 Answers