In Chrome, there is a noticeable difference in the number of event fires with dev tools open vs closed. The next six lines are copied out of the dev console. The first three were number of event fires while clicking / moving / releasing the mouse while dev tools were open, the next three were while closed:
458
357
204
19
43
25
Oddly, this "throttling" (maybe not?) effects zooming in THREE.js orbit controls with performance being much better only when dev tools are open. The following code exhibits this behavior:
<html>
<head></head>
<body>
<script type="text/javascript">
let i = 0;
window.addEventListener('mousedown', () => {
i = 0;
});
window.addEventListener('mouseup', () => {
console.log(i);
});
window.addEventListener('mousemove', () => {
i++;
});
</script>
</body>
</html>
Does anyone know how Chrome handles mouse events? Is it an intended feature to limit the event firing rate only when the dev tools are closed or maybe something else is going on?