4 ms·
I'll admit I'm certainly not an expert on browser rendering pipelines, but that's not the impression the article gave. Rather, it suggested that current browser
by Ajedi32 9y ago
I'll admit I'm certainly not an expert on browser rendering pipelines, but that's not the impression the article gave. Rather, it suggested that current browser engines may, in fact, be more efficient in terms of the absolute number of computations done.
When discussing existing browsers:
> But often the things on these layers didn’t change from frame to frame. For example, think of a traditional animation. The background doesn’t change, even if the characters in the foreground do. It’s a lot more efficient to keep that background layer around and just reuse it.
> So that’s what browsers did. They retained the layers. Then the browser could just repaint layers that had changed.
Then, later in the article, when discussing WebRender:
> What if we removed this boundary between painting and compositing and just went back to painting every pixel on every frame?
(Emphasis mine.)
So is WebRender less efficient in terms of power usage? Or is there some other factor that offsets the cost of this extra work?
- Ajedi32 9y agoThere's some interesting discussion about this very topic happening on /r/rust right now: https://www.reddit.com/r/rust/comments/75hzk5/the_whole_web_at_maximum_fps_how_webrender_gets/do6ed30/ https://www.reddit.com/r/rust/comments/75hzk5/the_whole_web_... A particularly relevant bit: > For the case where the CPU would have painted a single pixel, WR will certainly use a bit more power than CPU rendering with a compositor. For the case where a large portion of the screen changes, CPU renderers might miss their frame budget spending > 16ms drawing a frame, where WR will complete that task in 4ms. > We might light up part of a GPU for longer than compositing would have, but we just saved >12ms of CPU compute. The power hypothesis is that the saved CPU compute consumes more power budget than the extra GPU compute we added. If there was no further JS code to run (app is idle) then we can go back to idle state after 4ms, instead of after 16+ms.
- benjaminjackman 9y agoHmm that sounds like outside of missed frames or otherwise busy sites consistently using more than 25% of the frame budget more power will be required by the new approach. Isn’t that going to be the most common case?
- illuminatidum 9y agoHELLO YOUR PERIOD OF SUCESS IS NOW AT YOUR DOORSTEP WITH THE AIDS OF THE ILLUMINATI SOCIETY.JOIN NOW AND BE AMONG THE RICHEST PEOPLE ON PLANET EARTH.THE DOORS FOR NEW INNITIATIONS ARE NOW OPEN FOR ONLY THE WISE* WHATSAP...........+1 (770)609-5496 WHATSAP...........+1 (770)609-5496 WHATSAP...........+1 (770)609-5496 ARE YOU A BUSINESS MAN OR WOMAN , POLITICAL , MUSICIAN , STUDENT , THE YOU WANT TO BE RICH , FAMOUS, POWERFUL IN LIFE, JOIN THE ILLUMINATI brotherhood CULT TODAY AND GET INSTANT RICH SUM OF . 1MILLION DOLLARS IN AWEEK , AND A FREE HOME ANYWHERE YOU CHOOSE TO LIVE IN THIS WORLD AND ALSO GET 10, 000 ,000 U . S DOLLARS MONTHLY AS A SALARY. . . BENEFITS GIVEN TO NEW MEMBERS WHO JOIN THE ILLUMINATI . 1. A CASH REWARD OF USD $ 500, 000 USD 2. A NEW SLEEK DREAM CAR VALUED AT $300 ,000 USD 3. A DREAM HOUSE BOUGHT IN THE COUNTRY OF YOUR OWN CHOICE 4. ONE MONTH HOLIDAY ( FULLY PAID) TO YOUR DREAM TOURIST DESTINATION. 5. ONE YEAR GOLF MEMBERSHIP PACKAGE A V . I . P 6. TREATMENT IN ALL AIRPORTS IN THE WORLD 7. A TOTAL LIFESTYLE CHANGE ACCESS TO BOHEMIAN GROVE 8. MONTHLY PAYMENT OF $1, 000 ,000 USD INTO YOUR BANK ACCOUNT EVERY MONTH. 9. ONE MONTH BOOKED APPOINTMENT WITH TOP 5 WORLD LEADERS AND TOP 5 CELEBRITIES IN THE WORLD . IF YOU ARE INTERESTED MESSAGE THE AGENT NOW AT WHATSAP............+1[770]609-5496 OR EMAIL...................[illuminatidum666@gmail.com]
- nicalsilva 9y agoIt depends. For a lot of web pages, the things webrender do are actually very simple and can be faster than Firefox's compositor even if there was no painting required. The expensive stuff like rasterizing glyphs are cached. The idea is that if we can render everything at a cost that is equivalent to that of the compositor, then the benefits of the compositing infrastructure aren't clear anymore. For sure there will be pages where the compositor would have been faster for frames where no painting was required, at the end of the day it's a new architecture with new tradeoffs, but the goal is to be overall (much) faster.