requestAnimationFrame vs SetTimeout #2705
franfrutos
started this conversation in
General
Replies: 1 comment
-
Hi @franfrutos , Best, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi! I'm new to programming online experiments using jsPsych and have been looking into time presentation issues. I've read that requestAnimationFrame is preferable to setTimeout because it allows the browser to synchronize with the frame painting process.
Also, it looks like jsPsych uses setTimeout to time the presentation. I was wondering if anyone has managed to implement the requestAnimationFrame method to improve the time presentation.
Many thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions