2 ms·
I think that example is recalculating the wall positions for every frame. That works for an example of a mechanic, but you wouldn't do that in a real game.
by onion2k 11y ago
I think that example is recalculating the wall positions for every frame. That works for an example of a mechanic, but you wouldn't do that in a real game.
- cousin_it 11y agoI think the problem is worse than that. Here's a small jsfiddle showing that JavaScript's onmousemove is inherently laggy: http://jsfiddle.net/z8h6y787/ http://jsfiddle.net/z8h6y787/ Also see this page: http://atebits.github.io/browser-input-latency/ http://atebits.github.io/browser-input-latency/