I managed to run an unity example on Ubuntu Touch by compiling it as an webgl game and serving it with an http server and at then display it using QWebEngineView.
It worked fine, with 30+ fps with URP but that was on QWebEngine 5.12 where it used chromium 86. There’s a PR to update to QWebEngine 5.15 and chrome 87 and after installing it the game starts to flicker to black then back to normal as as the FPS gets better the flickering happens every ~500ms.
Might add that this doesn’t happen on simpler games without URP
How can I debug this, or anyone who used WebGl with chrome 87 had this problem and fixed it somehow?
Edit: My bad. QtWebEngine 5.15.x has Chrome 87
Got some console messages over here
qml: user agent: Mozilla/5.0 (Linux; Ubuntu 16.04 like Android 9) AppleWebKit/537.36 Chrome/87.0.4280.144 Mobile Safari/537.36
qml: [JS] (http://localhost:20989/Build/www.framework.js:149) navigator.mediaDevices support available
qml: [JS] (http://localhost:20989/Build/www.loader.js:713) [UnityCache] 'http://localhost:20989/Build/www.data' successfully downloaded and stored in the indexedDB cache
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) [UnityMemory] Configuration Parameters - Can be set up in boot.config
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) "memorysetup-temp-allocator-size-nav-mesh-worker=65536"
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) "memorysetup-temp-allocator-size-audio-worker=65536"
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) "memorysetup-temp-allocator-size-background-worker=32768"
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) "memorysetup-bucket-allocator-granularity=16"
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) "memorysetup-bucket-allocator-bucket-count=8"
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) "memorysetup-bucket-allocator-block-size=4194304"
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) "memorysetup-bucket-allocator-block-count=1"
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) "memorysetup-main-allocator-block-size=16777216"
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) "memorysetup-thread-allocator-block-size=16777216"
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) "memorysetup-gfx-main-allocator-block-size=16777216"
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) "memorysetup-gfx-thread-allocator-block-size=16777216"
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) "memorysetup-cache-allocator-block-size=4194304"
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) "memorysetup-typetree-allocator-block-size=2097152"
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) "memorysetup-profiler-bucket-allocator-granularity=16"
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) "memorysetup-profiler-bucket-allocator-bucket-count=8"
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) "memorysetup-profiler-bucket-allocator-block-size=4194304"
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) "memorysetup-profiler-bucket-allocator-block-count=1"
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) "memorysetup-profiler-allocator-block-size=16777216"
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) "memorysetup-profiler-editor-allocator-block-size=1048576"
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) "memorysetup-temp-allocator-size-main=4194304"
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) "memorysetup-job-temp-allocator-block-size=2097152"
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) "memorysetup-job-temp-allocator-block-size-background=1048576"
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) "memorysetup-job-temp-allocator-reduction-small-platforms=262144"
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) Found NO interfaces on host .
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) Loading player data from data.unity3d
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) Initialize engine version: 2021.3.0f1 (6eacc8284459)
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) [Subsystems] Discovering subsystems at path UnitySubsystems
qml: [JS] (http://localhost:20989/Build/www.loader.js:67) Creating WebGL 2.0 context.
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) Renderer: WebKit WebGL
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) Vendor: WebKit
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) Version: OpenGL ES 3.0 (WebGL 2.0 (OpenGL ES 3.0 Chromium))
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) GLES: 3
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) EXT_color_buffer_float EXT_color_buffer_half_float EXT_disjoint_timer_query_webgl2 EXT_float_blend EXT_texture_filter_anisotropic EXT_texture_norm16 OES_texture_float_linear WEBGL_compressed_texture_astc WEBGL_compressed_texture_etc WEBGL_compressed_texture_etc1 WEBGL_debug_renderer_info WEBGL_debug_shaders WEBGL_lose_context WEBGL_multi_draw GL_EXT_color_buffer_float GL_EXT_color_buffer_half_float GL_EXT_disjoint_timer_query_webgl2 GL_EXT_float_blend GL_EXT_texture_filter_anisotropic GL_EXT_texture_norm16 GL_OES_texture_float_linear GL_WEBGL_compressed_texture_astc GL_WEBGL_compressed_texture_etc GL_WEBGL_compressed_texture_etc1 GL_WEBGL_debug_renderer_info GL_WEBGL_debug_shaders GL_WEBGL_lose_context GL_WEBGL_multi_draw
qml: [JS] (http://localhost:20989/Build/www.framework.js:11008) WebGL: INVALID_ENUM: getInternalformatParameter: invalid internalformat
qml: [JS] (http://localhost:20989/Build/www.framework.js:11008) WebGL: INVALID_ENUM: getInternalformatParameter: invalid internalformat
qml: [JS] (http://localhost:20989/Build/www.framework.js:11008) WebGL: INVALID_ENUM: getInternalformatParameter: invalid internalformat
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) OPENGL LOG: Creating OpenGL ES 3.0 graphics device ; Context level <OpenGL ES 3.0> ; Context handle 1
qml: [JS] (http://localhost:20989/Build/www.framework.js:2211) The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. https://goo.gl/7K7WLu
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) ERROR: Shader
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) Hidden/Universal Render Pipeline/Edge Adaptive Spatial Upsampling shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) Input Manager initialize...
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) Input System initialize...
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) New input system (experimental) initialized
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) WARNING: RGBA Compressed DXT5|BC3 sRGB format is not supported, decompressing texture
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) WARNING: RGBA Compressed DXT5|BC3 sRGB format is not supported, decompressing texture
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) WARNING: RGBA Compressed DXT5|BC3 UNorm format is not supported, decompressing texture
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) WARNING: RGB Compressed BC6H UFloat format is not supported, decompressing texture
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) WARNING: RGBA Compressed DXT5|BC3 sRGB format is not supported, decompressing texture
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) WARNING: RGBA Compressed DXT5|BC3 sRGB format is not supported, decompressing texture
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) WARNING: RGBA Compressed DXT5|BC3 sRGB format is not supported, decompressing texture
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) WARNING: RGBA Compressed DXT5|BC3 sRGB format is not supported, decompressing texture
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) UnloadTime: 5.350000 ms
qml: 'caller' is DEPRECATED. It has no effect.
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) WARNING: RGBA Compressed DXT5|BC3 sRGB format is not supported, decompressing texture
qml: [JS] (http://localhost:20989/Build/www.loader.js:70) warning: 2 FS.syncfs operations in flight at once, probably just doing extra work
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) WARNING: RGBA Compressed DXT5|BC3 sRGB format is not supported, decompressing texture
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) WARNING: 0:2: 'GL_EXT_shader_texture_lod' : extension is not supported
ERROR: too many uniforms
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) Note: Creation of internal variant of shader 'Universal Render Pipeline/Lit' failed.
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) WARNING: 0:2: 'GL_EXT_shader_texture_lod' : extension is not supported
ERROR: too many uniforms
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) Note: Creation of internal variant of shader 'Universal Render Pipeline/Lit' failed.
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) WARNING: 0:2: 'GL_EXT_shader_texture_lod' : extension is not supported
ERROR: too many uniforms
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) Note: Creation of internal variant of shader 'Universal Render Pipeline/Lit' failed.
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) WARNING: 0:2: 'GL_EXT_shader_texture_lod' : extension is not supported
ERROR: too many uniforms
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) Note: Creation of internal variant of shader 'Universal Render Pipeline/Lit' failed.
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) WARNING: 0:2: 'GL_EXT_shader_texture_lod' : extension is not supported
ERROR: too many uniforms
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) Note: Creation of internal variant of shader 'Universal Render Pipeline/Lit' failed.
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) WARNING: 0:2: 'GL_EXT_shader_texture_lod' : extension is not supported
ERROR: too many uniforms
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) Note: Creation of internal variant of shader 'Universal Render Pipeline/Lit' failed.
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) WARNING: 0:2: 'GL_EXT_shader_texture_lod' : extension is not supported
ERROR: too many uniforms
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) Note: Creation of internal variant of shader 'Universal Render Pipeline/Lit' failed.
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) WARNING: 0:2: 'GL_EXT_shader_texture_lod' : extension is not supported
ERROR: too many uniforms
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) Note: Creation of internal variant of shader 'Universal Render Pipeline/Lit' failed.
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) WARNING: 0:2: 'GL_EXT_shader_texture_lod' : extension is not supported
ERROR: too many uniforms
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) Note: Creation of internal variant of shader 'Universal Render Pipeline/Lit' failed.
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) WARNING: 0:2: 'GL_EXT_shader_texture_lod' : extension is not supported
ERROR: too many uniforms
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) Note: Creation of internal variant of shader 'Universal Render Pipeline/Lit' failed.
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) WARNING: 0:2: 'GL_EXT_shader_texture_lod' : extension is not supported
ERROR: too many uniforms
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) Note: Creation of internal variant of shader 'Universal Render Pipeline/Lit' failed.
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) WARNING: 0:2: 'GL_EXT_shader_texture_lod' : extension is not supported
ERROR: too many uniforms
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) Note: Creation of internal variant of shader 'Universal Render Pipeline/Lit' failed.
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) WARNING: 0:2: 'GL_EXT_shader_texture_lod' : extension is not supported
ERROR: too many uniforms
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) Note: Creation of internal variant of shader 'Paint1G_WAnim_Shader' failed.
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) WARNING: 0:2: 'GL_EXT_shader_texture_lod' : extension is not supported
ERROR: too many uniforms
qml: [JS] (http://localhost:20989/Build/www.framework.js:1765) Note: Creation of internal variant of shader 'Universal Render Pipeline/Lit' failed.