Selected RAF as default loop
This commit is contained in:
parent
b15b4885fc
commit
2922f35951
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue