0
FPS
okay so i was trying to make a frames per second thing. this code is from stackoverflow. I dont really get it. mostly the variables i dont get. am i doing this correctly? Also can you explain it to me? https://code.sololearn.com/Wl2hd38k8p0R/?ref=app
1 Answer
+ 3
Your code only creates a counter. It does not track performance.
This Post has performance tracking examples.
https://stackoverflow.com/questions/8279729/calculate-fps-in-canvas-using-requestanimationframe