Now, I still struggle to move to firefox as I'm on a retina MBP, where firefox riles up my cpu and drains my battery.
I get that they have limited resources but it makes getting people to switch (and stay) on Firefox increasingly hard if it cuts battery life of their laptop nearly in half.
In the meantime, setting gfx.compositor.glcontext.opaque to true in about:config helps battery life significantly, at the cost of rounded corners and vibrancy.
Also, coincidentally, do you know what exactly causes the H264 problem on macOS? I've tried to track it down in bugzilla to no success, but I am 100% sure it is a bug. The energy impact for playing a H264 YouTube video in Safari has an energy impact of ~25. Firefox used to be ~60, but these days its ~180 (!)
> In the meantime, setting gfx.compositor.glcontext.opaque to true in about:config helps battery life significantly, at the cost of rounded corners and vibrancy.
Thanks for this! :)
I think CA was only moved to the window server relatively recently. Before then, my understanding is that it simply used OpenGL in-process, so it had no energy advantages over Firefox's built-in compositor. There was also a long time when the APIs to host CA content in the window server were private APIs and only Safari could use them.
> Also, coincidentally, do you know what exactly causes the H264 problem on macOS?
I believe, but am not sure, that H.264 is decoded in software in Firefox but is decoded in hardware in Safari.