Selected RAF as default loop

This commit is contained in:
Brikwerk 2021-09-25 22:11:10 -07:00
commit 2922f35951
2 changed files with 3 additions and 3 deletions

View file

@ -568,8 +568,8 @@ function updateGamepadDisplay() {
}
let timeOld = false;
let frequency = (1/240) * 1000;
let useRAF = false;
let frequency = (1/120) * 1000;
let useRAF = true;
function eventLoop() {
// Update x/y ratio for the sticks based on
// pressed buttons if we're using a keyboard

View file

@ -122,10 +122,10 @@
</p>
<h2 class="surface-lighter">Input Sampling Frequency</h2>
<select id="input-frequency" name="Select an Input Sampling Frequency" onchange="changeFrequency(event)">
<option value="RAF">Monitor Refresh Rate</option>
<option value="240">240Hz</option>
<option value="120">120Hz</option>
<option value="60">60Hz</option>
<option value="RAF">Monitor Refresh Rate</option>
</select>
<p>
Note: "Monitor Refresh Rate" is a more stable but