在浏览器中输出[Violation] ‘requestAnimationFrame’ handler took 59ms 是什么意思(creator 2.0.2)
你是什么操作导致这个警告的?我也遇到了,Graphics不停的绘制就会出现,而且停止绘制了还是会一直警告,除非clear了就不在警告了
同求解答(感谢)
无视就好,浏览器的警告信息
“Chrome violations” don’t represent errors in either Chrome or your own web app. They are instead warnings to help you improve your app. In this case, Long running JavaScript and took 83ms of runtime are alerting you there’s probably an opportunity to speed up your script.
(“Violation” is not the best terminology; it’s used here to imply the script “violates” a pre-defined guideline, but “warning” or similar would be clearer. These messages first appeared in Chrome in early 2017 and should ideally have a “More info” prompt to elaborate on the meaning and give suggested actions to the developer. Hopefully those will be added in the future.)
跳出这个警告,会有卡顿。怎么去除?