Bug 215571 - [WPE] WebGL content taking longer than expected to load compared to CEF
Summary: [WPE] WebGL content taking longer than expected to load compared to CEF
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WPE WebKit (show other bugs)
Version: WebKit Local Build
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-17 08:57 PDT by Oliver Reynolds
Modified: 2020-09-08 04:08 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Reynolds 2020-08-17 08:57:07 PDT
ReactJS + WebGL pages take longer to fully load all geometry/assets in WPE Webkit (driven by cog) than they do in CEF (with ozone) and Firefox. 

Environment is Sway (Wayland).

WPE Webkit build is: 
libwpe 1.7.1
WPEBackend-fdo 1.7.1
cog 1.7.1
wpewebkit 2.29.90

Cef build is:  84.0.4147.125

Sample ReactJS + WebGL page to reproduce the loading times between the browsers:
https://forge-rcdb.autodesk.io/configurator?id=5a7185a92a0a7aeb152725d5

In CEF, the geometry loads within about 4 seconds.
In WPE Webkit, cog reports that the page has loaded, but it takes at least 10-15 seconds before all geometry of the project is visible.
Comment 1 Oliver Reynolds 2020-08-17 10:21:50 PDT
I should add that once the geometry has loaded, WPE Webkit is capable of rendering pages at 60FPS, whereas CEF and Firefox only reach 30FPS.. So the performance is good. It's just the initial hang that's annoying.
Comment 2 Zan Dobersek 2020-09-08 03:33:24 PDT
Are you testing this on an embedded device?

Evaluating on an Intel-powered laptop inside a Debian Buster GNOME environment, I don't see a big difference between WPE (MiniBrowser or Cog) and Chromium 83.
Comment 3 Oliver Reynolds 2020-09-08 04:08:39 PDT
This is running on an Intel NUC (https://simplynuc.com/10i7fnh-full/):

System:    Kernel: 5.4.0-42-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 Console: tty 0
           Distro: Ubuntu 20.04 LTS (Focal Fossa)
Machine:   Type: Mini-pc System: Intel Client Systems product: NUC10i7FNH v: K61083-302 serial: <filter>
           Mobo: Intel model: NUC10i7FNB v: K61360-302 serial: <filter> UEFI: Intel v: FNCML357.0037.2019.1226.1738
           date: 12/26/2019
CPU:       Topology: 6-Core model: Intel Core i7-10710U bits: 64 type: MT MCP arch: N/A L2 cache: 12.0 MiB
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 38399
           Speed: 3901 MHz min/max: 400/4700 MHz Core speeds (MHz): 1: 3897 2: 3902 3: 1047 4: 3670 5: 3907 6: 3903 7: 3328
           8: 3903 9: 3913 10: 3902 11: 3896 12: 1645
Graphics:  Device-1: Intel driver: i915 v: kernel bus ID: 00:02.0
           Display: server: No display server data found. Headless machine? tty: 209x52
           Message: Advanced graphics data unavailable in console. Try -G --display
Audio:     Device-1: Intel driver: snd_hda_intel v: kernel bus ID: 00:1f.3
           Device-2: Sunplus Innovation type: USB driver: snd-usb-audio,uvcvideo bus ID: 1-2.3:5
           Sound Server: ALSA v: k5.4.0-42-generic
Network:   Device-1: Intel Wireless-AC 9462 driver: iwlwifi v: kernel port: 3000 bus ID: 00:14.3
           IF: wlp0s20f3 state: down mac: <filter>
           Device-2: Intel Ethernet I219-V driver: e1000e v: 3.2.6-k port: efa0 bus ID: 00:1f.6
           IF: eno1 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives:    Local Storage: total: 465.76 GiB used: 17.20 GiB (3.7%)
           ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 970 EVO Plus 500GB size: 465.76 GiB
Partition: ID-1: / size: 456.96 GiB used: 17.19 GiB (3.8%) fs: ext4 dev: /dev/nvme0n1p2
Sensors:   System Temperatures: cpu: 46.0 C mobo: 27.8 C
           Fan Speeds (RPM): N/A
Info:      Processes: 269 Uptime: 1d 1h 48m Memory: 31.08 GiB used: 765.7 MiB (2.4%) Init: systemd runlevel: 5 Compilers:
           gcc: 9.3.0 Shell: bash v: 5.0.16 inxi: 3.0.38