logoalt Hacker News

tralarpalast Sunday at 3:05 PM2 repliesview on HN

Similar results here.

I'm curious to know what the problem of Firefox is. For example, the 3d-raytrace-SP benchmark is nearly three times faster on Edge than on Firefox on my i7 laptop. The code of that benchmark is very simple and mostly consists of basic math operations and array accesses. Maybe the canvas operations are particularly slow on Firefox? This seems to be an example that developers should take a look at.


Replies

nicoburnslast Sunday at 8:17 PM

> Maybe the canvas operations are particularly slow on Firefox

That seems likely. WebRender (Firefox's GPU accellerated rendering backend) doesn't do vector rasterization. So Firefox rasterizes vectors using the CPU-only version of Skia and then uploads them to the GPU as textures. Apparently the upload process is often the bottleneck.

In contrast, Chrome uses (GPU-accelerated) Skia for everything. And Skia can render vector graphics directly into GPU memory (at least part of the rasterization pipeline is GPU accelerated). I would expect this to be quite a bit faster under load.

It's a known problem, but I hear that almost all of the Gecko graphics team's capacity beyond general maintenance is going towards implementing WebGPU.

---

SpiderMonkey is also now just quite a bit slower than V8 which may contribute.

360MustangScopelast Sunday at 7:37 PM

The developers are busy ramming AI into it by management. This is probably never going to get looked into.