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

12th Aug 2022, 1:19 AM
Junior - avatar
1 Réponse
+ 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
12th Aug 2022, 1:37 AM
Chris Coder
Chris Coder - avatar