3D WebView v4.11 added support for hardare acceleration for Windows (Direct3D11), which dramatically improves web rendering performance. For context, 3D WebView for Windows and macOS embeds Chromium using Chromium Embedded Framework (CEF). Starting in v4.11, when the Direct3D11 graphics API is used on Windows, 3D WebView uses CEF's OnAcceleratedPaint() method to make Chromium render directly to the web texture shown in Unity. The result is that web content is refreshed at a significantly higher frame rate.
Additional details:
- By default, the target web frame rate is set to 60 FPS, but the application can change this using StandaloneWebView.SetTargetFrameRate().
- Hardware acceleration is currently only supported on Windows with the Direct3D11 graphics API. For Direct3D12 and on macOS, 3D WebView uses CEF's non-accelerated OnPaint() method, which renders at a lower rate but still offers good performance.
- Hardware acceleration is enabled by default but can be disabled with StandaloneWebView.SetAcceleratedPaintEnabled().