Fastest browser engine by far at 500 FPS! Servo Webrender - CSS on the GPU part 1: Rust
Channel:𝓖𝓷𝓸𝓶𝓮💫𝓢𝓪𝓷𝓮 · Length:15:00 · Published:2016-02-23 · Views:18933
Summary
An excerpt from a Bay Area Rust meetup on Servo's WebRender, which renders CSS display lists on the GPU at very high frame rates. It explains the approach and demos rendering at around 500 FPS.
Why HN recommends it
HN commenters point to it when discussing how WebRender works and as evidence of what GPU-based browser rendering can achieve.
If you have the time there is a nice talk about WebRender — HN, 2017
C, C++, Rust, Go & systems languages · Web development · Computer graphics & rendering
Subtitles (excerpt)
so that that's actually interesting uh so we didn't actually see I didn't actually see this paper when we started it but it was very interesting that I found it later and I thought it was very interesting that um not only have we found that uh the existing vet Graphics apis are suboptimal the GPU vendors actually found this and found this a few years ago um so it's kind of nice to actually be uh doing what they wanted us to do all along um and of course it's written in Russ why I'm giving the talk here um and why we do it in Russ well because first of all we need really lowlevel performance we're basically writing a game engine um it's because that's how gpus are optim that's what gpus are optimized for um but we're writing something that is of course Very security sensitive it's a web browser is going to be exposed to untrusted content not directly but you know content can be structured in a way that they can basically send us any commands that they want so we need to be free of memory safety problems um but just as important we need to be multi-threaded modern game engines are all multi-threaded that's gpus are increasingly being optimized for multi-threaded use like uh with API like Vulcan that are uh on the way so we needed
On Hacker News
If you have the time there is a nice talk about WebRender: [VIDEO] Here is another great talk: [LINK] At ~25:30 he'll also talk a bit about Quantum. In a nutshell WebRender is used to send a web page to the GPU which will paint all divs, borders, shadows, images etc. Currently WebRender is the only component I'm aware of that is inside Firefox Nightly. It's still behind a config though. — NiLSPACE, 2017-04
According to this: [VIDEO] Firefox's servo engine can compose CSS elements/Display List together at 500 frames / second. Maybe next version of Windows / Linux desktop should use FF's servo engine? — srcmap, 2017-11
You should take these advices with a grain of salt because it refers to the legacy rendering pipeline used by current web browers. There is not absolute rule stating that layout and painting must be slow while compositing is not. In fact Mozillians are currently working on a new rendering pipeline[1] based on state of the art rendering tools[2]. This new pipeline should be deployed in firefox in … — littlestymaar, 2017-09
I'm sure the future blog posts will have more details, but it has to do with immediate mode vs retained mode APIs. [VIDEO] — yazaddaruvala, 2017-09
>"If performance is not competitive" I don't think this will be a problem. One example... [VIDEO] [LINK] — ZenoArrow, 2017-01
Related videos
- Servo Architecture: Safety and Performance · linux conf au 2017 - Hobart, Australia · 45:05
- What the heck is the event loop anyway? | Philip Roberts | JSConf EU · JSConf · 26:52
- The Beauty of Bézier Curves · Freya Holmér · 24:25
- Rich Harris - Rethinking reactivity · You Gotta Love Frontend · 36:45
- The Continuity of Splines · Freya Holmér · 1:13:50
- CppCon 2015: Andrei Alexandrescu “std::allocator...” · CppCon · 1:12:27
- Lexical Scanning in Go - Rob Pike · GoogleFOSSSydney · 51:17
- elevated by Rgba & TBC | 4k intro (FullHD 1080p demoscene demo) · Demoscene High-Quality Videos (Annikras) · 3:36
- Painting a Character with Maths · Inigo Quilez · 24:46
- Crockford on JavaScript - Volume 1: The Early Years · YUI Library · 1:42:08
- RailsConf 2016 - Turbolinks 5: I Can’t Believe It’s Not Native! by Sam Stephenson · Confreaks · 37:37
- CppCon 2017: Matt Kulukundis “Designing a Fast, Efficient, Cache-friendly Hash Table, Step by Step” · CppCon · 59:33
- The Real Story Behind Wayland and X - Daniel Stone (linux.conf.au 2013) · Mladen Mijatov · 45:35
- RustConf 2018 - Closing Keynote - Using Rust For Game Development by Catherine West · Rust Programming Language · 42:29
- A Deep Dive into Nanite Virtualized Geometry · SIGGRAPH Advances in Real-Time Rendering · 1:09:59
- JavaScript: The Good Parts · Google TechTalks · 1:03:47