245 points · by jhatax · 9y ago · 67 comments
This sounds more exciting to me than WebVR. Great work FF team.
Opera 12.xx could hold ~200 open/rendered/active/fully responsive tabs at ~2-3GB ram.
The browsers are a lot less bloated than people think they are. Sites on the other hand... we've moved from 800x600 images to 1920x1080 images and animations, tens of assets to hundreds, megabytes of Javascript, etc.
Firefox can handle 200 open (rendered / active/ responsive) tabs for a very long time now.
Source: when I'm browsing news sites or community sites (9gag, reddit, HN) I usually scroll the main page looking for stuff that looks interesting and open them in new tabs. I don't always open 200 tabs at once but it definetely happens from time to time. I'm using a desktop from 2009 with 4GB of RAM and and a dual core CPU in case you're wondering.
Edit: I have 4GB of RAM, not 2 as written earlier
A nice UI feature is in Settings -> General -> Performance.
I still notice, compared to Chrome, that if I use 1 content process, no matter how many tabs I have open, or how many I have closed, the process just grows and grows over time. In contrast, Chrome may use more memory but its size dependably follows the number of tabs open / closed.
Even though FF is recommending 1 Content Process now as default on my low spec machine, I have set it to 2 to increase the likelihood that one of those processes has no tabs, and gets destroyed, along with whatever garbage accumulates.
I think Mozilla could do more research on migrating tabs to processes to minimize memory usage, and accumulated garbage from the runtime that doesn't seem to be collected. Perhaps after a certain threshold (time, size) content processes should be destroyed and tabs migrated to a new one.
I enabled "Recommended performance settings" and Firefox changed processCount to 1. I have dual-core (4-thread) CPU so I think they don't use number of cores as base for this setting but make some A/B testing on users. Check in about:config 'e10s.rollout.cohort' and 'extensions.e10s' and you will see that every user is put in some kind of testing 'bucket'.
What I'm not entirely sure of, is how it's decided how many processes it uses. I think it's either largely dependent on the number of CPU cores or just straight-up that value. And then the vast majority of people has a quad-core, which is why it might seem like 4 is the default for everyone.
That being said, it's not just about CPU cores, there is some fixed number of content processes, and it was increased during the last recent months; when e10s was in infancy it was set to 1, then bumped a few times. Source: developers blogposts, and https://wiki.mozilla.org/Electrolysis/Multiple_content_proce... mentions Fx 55 is at 4 and expirements at https://wiki.mozilla.org/Electrolysis/Experiments#List_of_e1... mention 8
If it continues through beta just fine, looks like media.block-autoplay-until-in-foreground will finally ship [0]. This is something I've been tracking through [1] since it was called out in the 54 release notes although it was not actually released. I was always a bit surprised that this wasn't the default behavior as it was in Chrome. Major use case for me: queuing up several YouTube videos from either search results or directly through the list of a users videos.
[2] "Firefox Fights Back: Inside Mozilla, CEO Chris Beard and his team are preparing to outmaneuver Google’s Chrome browser" is linked from the submitted article and looks like an interesting read. Only got a few comments on HN when it was submitted 5 days ago.
[0] https://bugzilla.mozilla.org/show_bug.cgi?id=1387917
[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1308154
[2] https://www.cnet.com/special-reports/mozilla-firefox-fights-...
There's more info on this here: https://metafluff.com/2017/07/21/i-am-a-tab-hoarder/
It's populated with just favicons, no labels. And then, spread between 4 virtual machines, I have Firefox instances that each contain on average 20-200 tabs at a time.
It takes me weeks to whittle these down only to have them drastically inflate again. On the rare occasion a bug / data corruption leads to losing my tabs on one of my machines, it's more relieving than anything else.
Since I have no intention of switching to Windows after 20+ years on Linux, I'm going to have to wait, as usual.
If you encounter any bugs on Linux or macOS in Nightly, please do report them! The team is awesome about testing and fixing them. That said, the VR & driver/OS stack for support on those two platforms is still seeing a lot of flux and is not yet at the same level of performance and stability as Windows, depending on which particular version you grab.
It spams "[GFX1]: SharedSurfaceType::Basic not supported for WebVR" to the console and doesn't send any frames to the SteamVR compositor.
And as I understand it, the OSVR implementation never even bothered to implement OSVR-Rendermanager support, let alone fix the tab crashing after 1-2 seconds.
I'm pretty sure they all know it's broken. A while ago kip said he wanted to work on OSVR "soon" and later that we could expect WebVR on Linux "soon", but it looks like he is literally the only one who wants to work on it and doesn't have the time, at all. After all it's still an open bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1310663
That particular work is fairly well-separated from the rest of the core of Firefox and doesn't require somebody like Kip or Daosheng with years of experience hacking on VR hardware.
It has been blocked on lack of accelrated compositing for years, ref https://bugzilla.mozilla.org/show_bug.cgi?id=1010527 (less than half the framerate of Chrome on WebGL demos).
It's blocked on this meta-bug: https://bugzilla.mozilla.org/show_bug.cgi?id=594876 which is in turn blocked by many bugs.
I've heard that when available (never was on any linux machine I've had in my hands and tested since firefox introduced webgl, after a while I started disabling it to protect from the webgl vulnerabilities), it performs poorly compared to other browsers.
Especially with WebVR, you can use Windows as a troublesome device driver. Running the browser under Windows, either on a separate machine, or if the stars align with your hardware, in a VM. I sometimes run a Vive off a Windows VM - setting up the VM to perform well was a bit fiddly, but it works. And Windows is a lot easier to manage when you can accumulate VM snapshots of it.
For non-WebVR Vive or Rift use, there's http://idav.ucdavis.edu/~okreylos/ResDev/Vrui/ https://www.youtube.com/user/okreylos/videos .
For WebVR-ish development, there's my https://github.com/mncharity/node-webvr-alt-stack . Insecure, with no a-frame or lens correction - it was MVP for me. But I use it comfortably on laptop integrated graphics, at 30 fps, in coffeehouses and conference rooms, so that's fun.
I have to wonder if the WebVR spec might be less bad, if it had drawn from a larger community. My favorite bit was WebVR 1.1's getFrameData() - it was spec'ed to take an immutable object, which it would then modify with new data. Sigh.
Except then with firefox 55 https://bugzilla.mozilla.org/show_bug.cgi?id=1377950 happens and you have to close all tabs and reopen them.
I don't want to bash mozilla for this bug. Bugs happen. But this has been known for over a month and firefox 55 released with it...
That mindset has been starkly absent with WebVR. As in...
* "Mozilla Brings Virtual Reality to all Firefox Users" means "WebVR will ship on by default for all Windows users" [1] https://blog.mozilla.org/blog/2017/06/01/mozilla-brings-virt...
* "Announcing WebVR on Mac via Firefox Nightly"[2] says "web developers can build and test content on their preferred platform, whether it’s Windows, MacOS, or Linux (also available!)", where "available" means "crashes within seconds"[3] for almost a year, with no fix in sight. [2] https://hacks.mozilla.org/2017/06/announcing-webvr-on-mac/ [3] https://github.com/OSVR/OSVR-Docs/issues/83
* The alleged blocker, "direct mode", is needed to get acceptable performance on Windows... but not on linux. [4] https://www.reddit.com/r/Vive/comments/6lepou/linux_gamers_a...
Once upon a time, Microsoft would create Windows-only web extensions, to the detriment of the web. Nowadays, Mozilla does it for them.
A good rule of thumb for WebVR has been that there's always an unstated "on Windows", and anything said about non-Windows platforms working, is at best misleading. Especially anything said by Mozilla - it's been very bizarre.
https://webvr.rocks/ doesn't even bother to have a linux column.
Something more directly analogous to "Direct Mode" on Windows are DRM leases, which give direct control over the scanout, rather than simply bypassing the compositor. This isn't possible on Linux at all yet, but Valve is working on it: https://keithp.com/blogs/DRM-lease/
The performance results are ridiculous, you're maxing out an entire processor core just for a 1440p H264 video on Firefox.
I would like to see some substantation of this claim, my experience as linux user for 20 years is that firefox on linux is a second class citizen and mozilla developers often answer linux specific bugs by "wontfix, not a big enough portion of our users, would be a waste of resources".
Under the hook, it's extra windowsy. For example, they just dump config/cache/etc in a way similar to what's done on windows, and refused to support the XDG spec, which most desktop apps use.
It seems there's a reccuring "you do not represent a big enough portion of our users for us to care" attitude over time that made several not big enough portion of their users to stop caring and supporting firefox accelerating its demise caused by trying to be a chrome-like browser (among other mismanagement).
[1]: https://bugzilla.mozilla.org/show_bug.cgi?id=451129 [2]: https://bugzilla.mozilla.org/show_bug.cgi?id=1345661
GTK+ is the main graphic toolkit in the linux world and pulseaudio won the war a decade ago ! You may not like where the Linux world has been going the past few years (boo redhat, systemd and Lennart) but that's how it is now. You can't blame mozilla for supporting only the modern Linux world and not every esotheric configuration : that's the job of the distribution's maintainers !
In terms of encouraging broader adoption - cost and lower required specs for the GPU is probably top.
Higher risk, but almost "retina", is foveated displays like Varjo http://www.ubergizmo.com/2017/06/varjo-20-20-vr-headset/ http://www.kguttag.com/2017/07/10/varjo-foveated-display-reg... .
Details in Jen's video at https://hacks.mozilla.org/2017/07/tour-the-latest-features-o...
It was marked as being incompatible with FF 55+ and e10s. See https://addons.mozilla.org/en-US/firefox/addon/self-destruct...
Does anyone know an alternative?
In the last few years, it was becoming harder and harder to support Firefox as a browser simply because the cons had started to outweigh the pros: It became slow, bulky, and hung multiple times, on a system with 16 Gig RAM nonetheless . Even though I was the only Firefox guy in my team (So many teams I know develop and test ONLY on chrome), I still stuck with it. But was beginning to feel that I was supporting FFx, more out of philosophy than out of it being good software (like RMS insisting on browsing the web by wget-ing pages).
I'm glad to note the last 2-3 releases for firefox have been EPIC! So many improvements for power users (I have 120+ tabs open right now and it's all buttery smooth), and focussing on what FIrefox does best: Be an awesome browser! Next time someone tells me how Chrome is hogging their system memory, I'll (once again) be proud to point them to the Firefox download page.
Ffx dev team, You guys are awesome! :D
Only thing really missing for someone that always has about 50 tabs open is de-prioritising background tabs. I don't have music playing in the browser and just want it to use no more than 10% CPU on tabs I'm not actively browsing. There should be options to prioritize responsiveness over everything. Sick of cpu fans spinning up and browser taking time to respond to tab switches.
It's crazy to see them continue to believe that firefox is great and continually improving and that losing users is due to something outside of their reach when they're piling up decisions accelerating firefox towards irrelevance.
We don't want WebVR on windows only, we want freedom of choice instead of being forced to submit to whatever mozilla unilaterally decide, we want the features that were provided by extensions that firefox decided to kill, we want an adblocker (content-blocker), we want an option to protect our privacy by killing trackers, we want a way for us users to reach developers and have our voice heard, and so on. we don't want more marketing and bs.
As for the other stuff... I've been using Firefox beta as my daily driver for a year and a half, because it's WAY FASTER than chrome, has better bookmarks handling, better built in tracker killing. The speed is only getting better as more parts of Quantum make it to beta. It sucks that it has to be so slow, but they are rebuilding an airplane while in the air with a few million passengers.
Seems like the rest of your post is just upset about the move to Webextensions. Massive API rewrites are awful. But they also bring big benefits. It is better for them to make this shift while Firefox still has some market share, so there is pressure on developers to rewrite.
All told, FF is pretty aggressively moving ahead of the pack in terms of speed and standards compliance. They already are ahead of the pack on privacy. It's not inappropriate to have marketing that pushes that excitement.
Firefox's OpenVR support on Linux is enabled in nightly, but it doesn't actually work.
You mean like https://support.mozilla.org/en-US/kb/tracking-protection-pbm?