question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

WebGL performance issues

See original GitHub issue

Performance of WebGL compared with Chrome and Chromium is subpar

Whilst playing around with some WebGL 2 code I noticed that fps seemed to be roughly half of what Chrome was chucking out. Rendering 2 million cubes produced around 29fps whilst in Chrome it easily hit 60fps.

So I ran some more tests with a proper benchmark site https://web.basemark.com. These were all run on my Razer Blade 14 (2017) running Windows 10 x64.

Here are my results:

  • Brave Nightly 0.66.24 (Chromium: 74.0.3729.108) - Score: 585.08 (didn’t complete)
  • Brave Release 0.63.48 (Chromium: 74.0.3729.108) - Score: 531.3
  • Chrome 74.0.3729.108 - Score: 926.73
  • Chromium 74.0.3729.108 - Score: 947.62

These confirmed my suspicions and is quite substantial.

I did notice that Chrome has some additional Driver Bug Workarounds under chrome://gpu

  • disable_delayed_copy_nv12
  • disable_direct_composition_layers

And one additional one in Brave Release:

  • msaa_is_slow

If I had to guess I’d say this could be related to having a laptop with Intel and NVIDIA graphics cards. Those options that have been toggled above look like they’re related to picking the wrong card. But it’s just a guess.

Happy to provide more info or do more tests if needed.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
PhilTcommented, Jul 3, 2019

Hi @bsclifton, unfortunately performance is the same. Still down at around 10fps (I’ve changed the test a bit so fps has dropped but it’s same on Stable) on my test whereas Chrome is getting about 45fps.

Tested on Version 0.69.24 Chromium: 75.0.3770.100 (Official Build) nightly (64-bit) that I just installed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

WebGL performance considerations - Unity - Manual
WebGL -specific settings which affect performance. To improve performance, set Exception support to None in the Player settings for WebGL by expanding Other ......
Read more >
Detect and Avoid Common Performance and Memory Issues ...
This session explores common performance and memory issues that arise in WebGL builds produced using the Unity game engine.
Read more >
Issues with webGL performance and support - Esri Community
Solved: Problem I've been developing a web application for the first time using the JS API. When testing the performance of the website, ......
Read more >
Unity WebGL Memory and Performance Optimization - Medium
This article will outline several techniques for resolving some common WebGL performance issues we've seen with games published on Kongregate, and hopefully ...
Read more >
What causes bad WebGL performance - Unity Forum
It could be that your network code is waiting for a server response and and limits the frame rate to the slowest round...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found