Doubt on raf Queue in Advanced Nodejs course

Asked by Gibin Ninan about 7 days ago


Here each time the screen gets updated when set timeout function is invoked. And raf gets invoked everytime whenever screen is about to get updated. In that case this should be linear and raf should run in the same rate as of setTimeout right ?

SetTimout --> updates screen (just before) updating --> raf ()

Then how can raf be running slow ?

0 Answers

This is an unanswered question. Create an account to answer it!Create Free Account
Your answer