Sigma on Nostr: Stupid question: What's the correct way for scheduling game ticks in JS? I've been ...
Stupid question: What's the correct way for scheduling game ticks in JS? I've been using `window.requestAnimationFrame()`, but that seems to make updates coming from mouse events sometimes laggy for some reason...
#help #programming #javascript
Published at
2024-11-03 19:20:06 UTCEvent JSON
{
"id": "2efc5b059e9fc6f0479bdd462432877b38b695d1259ef8ba70c0135af5b46244",
"pubkey": "89793ce12c71ae70e54fc63e2756fa4b24a0704f7d38a01ba969e41ba86ff681",
"created_at": 1730661606,
"kind": 1,
"tags": [
[
"t",
"help"
],
[
"t",
"javascript"
],
[
"t",
"programming"
],
[
"proxy",
"https://comfy.social/notes/a05jjrquns",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://comfy.social/notes/a05jjrquns",
"pink.momostr"
],
[
"-"
]
],
"content": "Stupid question: What's the correct way for scheduling game ticks in JS? I've been using `window.requestAnimationFrame()`, but that seems to make updates coming from mouse events sometimes laggy for some reason...\n\n#help #programming #javascript",
"sig": "7a1b7aace48533e458bd443cf67137a1f3edc77466eafc695ac75ac937942b6a74fdcd9ac79a411217795b840c80f87d341c55daf2558cee362f0769aa1cd87a"
}