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 timeOld = false;
|
||||||
let frequency = (1/240) * 1000;
|
let frequency = (1/120) * 1000;
|
||||||
let useRAF = false;
|
let useRAF = true;
|
||||||
function eventLoop() {
|
function eventLoop() {
|
||||||
// Update x/y ratio for the sticks based on
|
// Update x/y ratio for the sticks based on
|
||||||
// pressed buttons if we're using a keyboard
|
// pressed buttons if we're using a keyboard
|
||||||
|
|
|
||||||
|
|
@ -122,10 +122,10 @@
|
||||||
</p>
|
</p>
|
||||||
<h2 class="surface-lighter">Input Sampling Frequency</h2>
|
<h2 class="surface-lighter">Input Sampling Frequency</h2>
|
||||||
<select id="input-frequency" name="Select an Input Sampling Frequency" onchange="changeFrequency(event)">
|
<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="240">240Hz</option>
|
||||||
<option value="120">120Hz</option>
|
<option value="120">120Hz</option>
|
||||||
<option value="60">60Hz</option>
|
<option value="60">60Hz</option>
|
||||||
<option value="RAF">Monitor Refresh Rate</option>
|
|
||||||
</select>
|
</select>
|
||||||
<p>
|
<p>
|
||||||
Note: "Monitor Refresh Rate" is a more stable but
|
Note: "Monitor Refresh Rate" is a more stable but
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue