【问题标题】:WKWebView WebGL performance is lower than SafariWKWebView WebGL 性能低于 Safari
【发布时间】:2016-04-07 11:31:37
【问题描述】:

我正在尝试使用 WKWebView 在我的应用程序中显示 this stream,但帧速率低于 1 FPS。流正在使用 webGL。当我在 Safari 中打开相同的流时,它运行良好。我打算使用SFSafariViewController 并将其作为子视图插入到我的视图中。那可能吗?你认为性能会更好吗?我的应用会因此被拒绝吗?编辑客户端 JavaScript 可以提高性能吗?

【问题讨论】:

    标签: javascript ios webgl sfsafariviewcontroller


    【解决方案1】:

    我一直在搜索,我知道,WebView Config 中一定有一些加速。只需允许内联媒体播放并享受速度。 https://developer.apple.com/library/ios/documentation/WebKit/Reference/WKWebViewConfiguration_Ref/index.html#//apple_ref/doc/c_ref/WKWebViewConfiguration

    【讨论】:

    • 我已将此设置为 true,但我的游戏速度仍然是原生 safari 的两倍
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-12-16
    • 1970-01-01
    • 2014-08-03
    • 1970-01-01
    • 1970-01-01
    • 2012-11-02
    • 1970-01-01
    相关资源
    最近更新 更多