コガネブログ

平日更新を目標に Unity や C#、Visual Studio、ReSharper などのゲーム開発アレコレを書いていきます

【Unity】Looks like you are rendering without using requestAnimationFrame for the main loop.

概要

Looks like you are rendering without using requestAnimationFrame for the main loop. 
You should use 0 for the frame rate in emscripten_set_main_loop in order to use requestAnimationFrame, 
as that can greatly improve your frame rates!

WebGL ビルドしたゲームを実行したところ
ブラウザのコンソールに上記のエラーが表示されていた

Application.targetFrameRate = 60;

上記のように Application.targetFrameRate を指定している箇所を削除したら
エラーが表示されなくなった

参考サイト様