You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@BeBel42, this line is evil!
As you probably know, this (0 ms) is what tells to browser to re-render the canvas as fast as it can. And CPU usage goes up to the skies...
if you set it to 10 ms, in theory, you already get a 100 fps refresh rate (should be enough for pong, right?)
Anyway, this is no bug, but I think being easier on the cpu would be a nice enhancement.
The text was updated successfully, but these errors were encountered:
@dbanziziki Was the one who wrote that line 😅 But it was previously set to something like 100 I think? And it was laggy as hell... But if 10 seems good, then yeah, we can change this. I'll do it. We might as well use that remaining cpu for some bitcoin mining. Right? 😉
ft_transcendence/frontend/src/pages/Pong.tsx
Line 20 in 198e6aa
@BeBel42, this line is evil!
As you probably know, this (0 ms) is what tells to browser to re-render the canvas as fast as it can. And CPU usage goes up to the skies...
if you set it to 10 ms, in theory, you already get a 100 fps refresh rate (should be enough for pong, right?)
Anyway, this is no bug, but I think being easier on the cpu would be a nice enhancement.
The text was updated successfully, but these errors were encountered: