There is a site in it there is a section 3D walk created with the help of JS.
So I connected to it via WebView , but here it is - there are brakes, it moves very slowly.

Is it possible to speed it up (to optimize the work of WebView )?

just tried this way did not work:

// Enable Javascript WebSettings webSettings = mWebView.getSettings(); webSettings.setJavaScriptEnabled(true); //metodi optimizacii mWebView.getSettings().setRenderPriority(WebSettings.RenderPriority.HIGH); mWebView.getSettings().setCacheMode(WebSettings.LOAD_CACHE_ELSE_NETWORK); mWebView.getSettings().setAppCacheEnabled(true); mWebView.setScrollBarStyle(View.SCROLLBARS_INSIDE_OVERLAY); webSettings.setDomStorageEnabled(true); webSettings.setLayoutAlgorithm(WebSettings.LayoutAlgorithm.NARROW_COLUMNS); webSettings.setUseWideViewPort(true); webSettings.setSavePassword(true); webSettings.setSaveFormData(true); webSettings.setEnableSmoothTransition(true); // Force links and redirects to open in the WebView instead of in a browser mWebView.setWebViewClient(new WebViewClient()); 

  • WebView is a regular browser in your phone, only “bare”, by redefining the methods, of course, you can chop off some functionality so that it is not executed (displaying an advertisement picture or even leaving static html without js) And so, it’s not a native optimize it. - Silento
  • one
    need to optimize js. - KoVadim 2:57 pm
  • what can you offer ??? n what to do with jsŞ - elik
  • 2
    since the js code is not known, I cannot offer anything except how to throw this idea away - use webview and rewrite it all natively. I understand that this can be quite difficult, but here you need to choose - either the speed of development or the speed of execution. - KoVadim

0