3 ms·
Impossible to play on a 280hz monitor. I see you're using Date.now() to calculate the delta. Instead, use the first argument given to you by requestAnimationFra
by zebracanevra 5y ago
Impossible to play on a 280hz monitor. I see you're using Date.now() to calculate the delta. Instead, use the first argument given to you by requestAnimationFrame for higher resolution, which is a DOMHighResTimeStamp[0]
[0] https://developer.mozilla.org/en-US/docs/Web/API/DOMHighResTimeStamp https://developer.mozilla.org/en-US/docs/Web/API/DOMHighResT...
- deleted 5y ago[deleted]
- mysterydip 5y agoJust curious, what benefits do you see using a 280Hz refresh rate?
- qrybam 5y agoThe benefits are mostly realised when playing games: * Higher refresh rates means more frames can be displayed each second by the monitor * Lower latency between some input action (mouse, keyboard) and the frame being drawn on the monitor (provided your game can run at a matching number of frames per second; FPS) * Synching your FPS to refresh rate (e.g. if you're game can run at a locked 280fps and your monitor is running at 280hz) will remove tearing and provide a very smooth experience On the desktop the benefits are less pronounced: Everything just feels a bit smoother, like moving your mouse point/open windows around the monitor. Such high refresh rate displays normally aren't very colour accurate when compared to displays used for media editing.