developit / developit/preact-cycle

setTimeout vs. requestAnimationFrame?

Aperta
#2 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
enhancement question
Lingua principale
JavaScript
Stelle
143
Fork
12
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

hey just wondering if there was any reason you went with a setTimeout in the renderer here? just out of simplicity?

I'm thinking requestAnimationFrame might be a bit better (to render on the paints) but i'm not sure if setTimeout was a deliberate decision or not.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.