我一直在苦恼无头Chromium的性能问题。我的计划是至少以30fps(甚至更高)的速度捕获加载的网站。然而,随着分辨率的增加,返回帧的频率会下降。
对于720p的窗口分辨率,每秒钟可以轻松达到约35fps,但当分辨率变为1080p时,返回的帧数就会下降到约20fps或更低。 我在Google Cloud Compute Engine上运行Chromium,使用的是具有30个CPU的机器,但并未完全利用所有资源。
你们中有没有人遇到类似的问题?
我的一些设置:
- 应用程序使用Chrome DevTools事件“Page.screencastFrame”来捕获帧。 - Google Cloud Compute Engine - 30CPU,30GB内存 - 标志:
对于720p的窗口分辨率,每秒钟可以轻松达到约35fps,但当分辨率变为1080p时,返回的帧数就会下降到约20fps或更低。 我在Google Cloud Compute Engine上运行Chromium,使用的是具有30个CPU的机器,但并未完全利用所有资源。
你们中有没有人遇到类似的问题?
我的一些设置:
- 应用程序使用Chrome DevTools事件“Page.screencastFrame”来捕获帧。 - Google Cloud Compute Engine - 30CPU,30GB内存 - 标志:
-disable-translate --disable-extensions --disable-background-networking --safebrowsing-disable-auto-update --disable-sync --metrics-recording-only --disable-default-apps --no-first-run --remote-debugging-port=9222 --user-data-dir=/var/app/CHROME --disable-setuid-sandbox --window-size=1920,1080 --disable-gpu --hide-scrollbars --user-agent=true --remote-debugging-address=0.0.0.0 --no-sandbox --no-zygote --headless --autoplay-policy=no-user-gesture-required --disable-notifications --disable-logging --disable-permissions-api