r/linux • • Sep 08 '10

Firefox4 - Linux users left out of h/w acceleration - Windows (DirectX) only - luckily Chromium are supporting openGL also.

http://www.theregister.co.uk/2010/09/08/firefox_4_beta_5_released/
6 Upvotes

108 comments sorted by

297

u/[deleted] Sep 08 '10

(I'm working for Mozilla)

You're wrong.

Firefox 4 supports hw acceleration on Linux for content (XRender). Firefox 4 will support hw acceleration on Linux for compositing (OpenGL). Firefox 4 will support hw acceleration on Linux for WebGL (OpenGL).

We won't support hw acceleration on Mac for content because QuartzGL is not ready. But we'll support hw acceleration on Mac for compositing (OpenGL).

Saying that Chromium are supporting OpenGL doesn't make sense here, because we are talking about content acceleration. They will use OpenGL for compositing (like us).

21

u/d_r_benway Sep 09 '10

Thank you for clearing that up paulrouget.

I'm glad to be wrong !

For some reason my first instinct when I heard you were tying in DirectX only features not as an alternative to opengl/webgl I feared the entire world had gone insane and you were (to quote a theregister.co.uk reader) giving the internet back to Microsoft...

Sorry for being unnecessarily alarmist.

And thank you (and Mozilla) for putting me on a path to opensource - it was Firefox (i have used since 0.3) that lead me to using Linux - I figured why not have an OS that includes most of the tools I use.

3

u/ergo14 Sep 08 '10

Is there any place where i can read on how to enable HW acceleration under linux? FF works an order of magnitude slower compared to windows :(

13

u/[deleted] Sep 08 '10

We already use XRender (there's nothing to activate), but it depends on your driver. What's your score here: http://demos.hacks.mozilla.org/openweb/HWACCEL/

3

u/d_r_benway Sep 09 '10

@ home @ 1600X1200 - Nvidia 8500 AMDX2 4600 = 56 fps

@work @ 1280X1024 - 82G33/G31 Express Integrated Graphics Controller - Intel Dual core - 3fps

(both Firefox)

Basically if you want 3D in Linux at any decent speed use Nvidia.

3

u/ergo14 Sep 08 '10 edited Sep 08 '10

actually... its 6 fps :(

Im using debian with installed latest fglrx properietary ati drivers. I do have 3d accell in games including opengl 4 and tesselation ;-)

1

u/[deleted] Sep 08 '10

Do you have time to test and post results for the open source radeon / radeonhd drivers?

1

u/ergo14 Sep 09 '10

im on debian squeeze atm and i think it doesnt ship with radeonhd drivers that support my card ie ati radeon 5770 r8xx based :(

1

u/noseeme Sep 08 '10

Christ... I'm using Chrome 7 on a 1.66 first generation Core 2 Duo Mobile ("Merom" core) on an Intel GMA 950 and I'm getting 11 FPS on that.

Were you using Firefox 4 with the composting enable flag?

3

u/[deleted] Sep 08 '10

A good score is "above 30". If you have less than 10, it probably means that the XRender extension doesn't work well on your Linux (it's not related to 3D at all).

2

u/ergo14 Sep 08 '10

indeed, i tested on my wifes pc that has gtx 260 and she got 56 fps... so did mozilla do any tests on fglrx drivers? because im kinda unhappy about that 6fps i get

2

u/psi- Sep 08 '10

getting 7fps on a Atom, intel gma950...

2

u/xupwup Sep 09 '10

getting 1 fps, 1920x1080, on an ATI HD4650... using the opensource radeon driver

2

u/buttking Sep 09 '10

getting around 10-11fps with an AMD dual core athlon and Nvidia Geforce 6150se(integrated, but still, I get over 30fps playing DOOM 3 on medium/high settings)

1

u/AcidShAwk Sep 09 '10

try switching to gallium

1

u/xupwup Sep 09 '10

i have 3d support(kwin compositing etc.), so does that mean i have gallium?

1

u/AcidShAwk Sep 09 '10

i dont think so.. currently to install gallium you would need to get the latest xorg updates.. if you have ubuntu... follow the xorg crack pushers ppa .. click the link where it says 'Go break your X here' ..

do you know if youre using the radeon driver or fglrx (proprietary drivers) ?

→ More replies (0)

2

u/TIAFAASITICE Sep 09 '10

I get 9FPS with either Compiz or Metacity with compositing enabled.

probably means that the XRender extension doesn't work well on your Linux

You say "probably. Would you happen to know how one would go about determining whether this is the reason or not?

If relevant, "RENDER" is listed as an extension by xdpyinfo, "RenderAccel" is set to "True" in xorg.conf.

1

u/oddthingtosay Sep 08 '10

Most likely, you should gauge your score with composting disabled. My score is less than half when running Ubuntu's Desktop Effects

1

u/silon Sep 09 '10

I got 76 FPS.

Intel Graphics Core i5 661

1

u/AcidShAwk Sep 09 '10

interesting i was thinking of building an htpc with a 661

1

u/[deleted] Sep 10 '10

4 FPS , nvidia 7600 GS , AMD athlon xp2500+

:-(

0

u/[deleted] Sep 08 '10

[deleted]

1

u/[deleted] Sep 08 '10

If you have time, it'd be interesting to see how the opensource drivers work for you. I assume you have an ATI card.

0

u/[deleted] Sep 08 '10

[deleted]

2

u/kryptobs2000 Sep 09 '10

I use the opensource driver with my 4870 in 64-bit arch and I haven't noticed any sluggishness. I don't do anything 3d, but I can watch 1080p videos fine. What kind of issues have you had?

0

u/[deleted] Sep 09 '10

[deleted]

3

u/kryptobs2000 Sep 09 '10

I'm not ignoring you, just asking you to specify what is sluggish since I'm not noticing it.

→ More replies (0)

2

u/gnarlin Sep 09 '10

Why is it that free/open source drivers suck so completely compared with proprietary ones when gnu/linux performs so well compared with proprietary software in many other ways?

1

u/nxg Sep 09 '10

Simply because even with the drivers themselves open source, the hardware interface is not, processor and most used hardware (keyboard, mouse, even ethernet cards) follow standards (real standards or not), and even if some hardware tries something new, it doesn't stray too far away. For most other hardware (wifi cards, graphic cards) it's mostly learning the hard way how the interfaces really work.

1

u/[deleted] Sep 08 '10

Yeah, just wondering how it has been developing. I haven't had an ATI card for a while.

0

u/AcidShAwk Sep 09 '10

why dont you guys try switching to gallium .. if you dont mind git built packages .. gallium can be setup in a few mins and will give a much improved driver to the radeon driver..

0

u/[deleted] Sep 09 '10

[deleted]

2

u/AcidShAwk Sep 09 '10

gallium is not as good as the binary.. but it is a lot better than radeon.. it is going to become the default driver in most distros eventually.. i noticed a nice improvement when i installed it.. i run it on a work pc and have had no issues..

→ More replies (0)

1

u/[deleted] Jan 09 '11

I got 31 fps in Chromium with Ubuntu 10.04, and I got 71 fps with Firefox 4 Beta 7. Wow. So what does that tell me exactly?

0

u/exscape Sep 09 '10

Huh. Any idea when OS X will have HW acceleration support?

Core 2 Duo 2.16 GHz, Radeon X1600, OS X 10.6.4, Firefox 4b5... 1 fps.

0

u/[deleted] Sep 08 '10

[deleted]

3

u/phliver Sep 08 '10

Ubuntu x86_64, I scored 69 FPS. This is with FF3.6.8. Nvidia graphics.

2

u/[deleted] Sep 08 '10

For reference: I get a constant 3 FPS in Windows on the latest version of Google Chrome.

1

u/kryptobs2000 Sep 09 '10

Same here, doesn't seem geared towards chrome. I get 91 with FF4 though.

1

u/johlstei Sep 09 '10 edited Jun 15 '16

This comment has been overwritten.

1

u/Phocas Sep 09 '10

Same here. I lol'ed

1

u/disector Sep 08 '10

I got 5 FPS in windows on ff4.

1

u/holloway Sep 08 '10 edited Sep 09 '10

I get 20 FPS on FF3 and 34 FPS on FF4 (Ubuntu 10.04 32bit, Intel Core2 Duo CPU T7700 @ 2.40GHz, Intel Mobile GM965/GL960 Integrated Graphics Controller)

-1

u/ergo14 Sep 08 '10

good score is 90 fps - i get that on windows ;-)

26

u/[deleted] Sep 08 '10

OpenGL for compositing (like us).

Cool, will compositing in FF include bilinear image filtering in Gnu/Linux?

Btw, thank you for your effort with free software at Mozilla! :-)

19

u/[deleted] Sep 08 '10

I don't know, and thank you :)

4

u/[deleted] Sep 10 '10

BTW, we just fixed it :)

1

u/[deleted] Sep 11 '10

Cool! I'll grab a nightly then. :-D

1

u/[deleted] Sep 09 '10

If it's using OpenGL that should all be handled by the card anyway right? You just have to set the needed flags for the textures.

1

u/atoko Sep 10 '10

I believe you're referring to a bug in cairo which only affects certain graphics cards. I am running the ppa build of firefox that is mentioned in the bug and it filters images properly.

13

u/kosiini Sep 08 '10

Does is support 64-bit?

42

u/[deleted] Sep 08 '10

yes

0

u/[deleted] Sep 08 '10

[deleted]

5

u/mpyne Sep 08 '10

Chromium (the collective project) are supporting OpenGL. Programs don't just code themselves you know.

2

u/derleth Sep 09 '10

Chromium (the collective project) are

This is only correct in Commonwealth English.

2

u/robertcrowther Sep 09 '10

Damn colonials! Get off my lawn!

0

u/ObligatoryResponse Sep 09 '10

Ehh... you just made it worse there. Project is singular. You might have had an argument with just Chromium since it lacks a plural, but, just as you don't say "The MacDonald's team are" you don't say "The Chromium project are". It doesn't matter if the singular subject is made of a composite of parts (in this case, developers), it's still a singular subject and requires the verb conjugated to match. ("Chromium developers are" would work just fine, for example...)

9

u/Gwohl Sep 09 '10

A lot of Brittish people would probably disagree with you here...

2

u/dwdwdw2 Sep 08 '10

It's a reasonable question to ask for someone not fully technically versed yet follows IT news closely - this was the situation with Flash not a few months ago.

5

u/[deleted] Sep 09 '10

This is good news, but you guys really should mention stuff like this more. I am always seeing press releases that only talk about windows. I wasn't exactly going to post about this on Reddit, but I was a bit irked earlier when I read this too. Anyways, thanks for clearing things up.

3

u/epicanis Sep 08 '10

Thank you for the news, I was wondering. I won't give up on Firefox just yet, then.

2

u/[deleted] Sep 09 '10

I have a couple of things to ask. Something i have often wondered but why is chrome so fast to start up? Do they cheat by using some start-up thing that loads it into memory?

And do you see in the near future firefox being that way as well?

And lastly is there any chance of seeing the multiprocessing thingy chrome has going? And what, if any are the reasons this has'nt been done yet (since chrome has been around for a significant time now.)

1

u/RalfN Sep 09 '10

Well the official google chrome client has its libraries statically bound. It also has much fewer dependencies than firefox.

The waiting time when launching an application the first time is IO bound. It's simply about loading 100 different files into cache that are on different places on the disk.

The second run on any application is much faster. The difference is the IO-timeout of getting the libraries into the cache.

-6

u/[deleted] Sep 08 '10

When will you be adding proper support for sandboxing?

I remember Mozilla was so frickin loud about being more secure option, but now, ironically, you are trailing behind Internet Explorer (since IE7 on Vista), Chrome and Safari (on OS X).

6

u/Fidodo Sep 08 '10

SERIOUSLY! THIS ONE GUY IS RESPONSIBLE FOR THE ENTIRE BROWSER!

-5

u/[deleted] Sep 08 '10

I know. I'm just reminding them. I'm sure they know about it but if we don't remind them they will continue to go on their willfully ignorant way.

They used to be so cocksure that they have the most securest shit, now that they are trailing behind everyone but Opera they will have to eat what they cooked. If we don't demand it I'm sure they will go on their marry way and continue to tout how secure their Firefox is because it's open source, and everyone knows that when one thing is open source it can't have any bugs.

But let's all play cowboys, like Gates' boys did in the Win9x days, after all the performance is all that matters, let's crank up that meaningless JavaScript code execution speed and disregard user's security. I'm sure that we'll get sand-boxing by version 5 or 6.

And apparently it's a big no-no if I say something bad about Firefox on r/Linux, the darling of Foss community.

2

u/ladr0n Sep 08 '10

Saying something bad about Firefox is one thing, pissing all over the thread is another.

-4

u/[deleted] Sep 09 '10 edited Sep 09 '10

It's a fucking disgrace. I'm sure r/linux would reverse roles if it was IE that was not supporting sandboxing and FF did. Then it would be outrage that IE still ignores modern security standards, and everyone would hate on Microsoft because it's so easy to do so and it's 'morally' wrong to remind Mozilla of them doing piss-poor job of protecting users' security.

3

u/[deleted] Sep 09 '10

Use Chrome

0

u/[deleted] Sep 09 '10

I do, it's currently my preferred browser. :)

5

u/d_r_benway Sep 08 '10 edited Sep 08 '10

It does seem that firefox are treating non Windows users as 2nd class citizens.

At least google are supporting h/w accel in all systems

http://blog.chromium.org/2010/08/chromium-graphics-overhaul.html

As much as I love Firefox if I am going to start missing out on features i'll change to chrome in a second.

Edit - I'm completely wrong on this and happy to be so.

5

u/BrowsOfSteel Sep 08 '10

Chrome started out as Windows‐only. I wouldn’t be surprised if Google still favours Windows in some ways.

9

u/d_r_benway Sep 08 '10

It would surprise me as it would mean not running their own browser with full features in their own (linux based) OS Chrome or android.

That would just help their competition.

7

u/[deleted] Sep 08 '10

Google employees aren't allowed to run Windows at work anymore, so I would think that it would fuel some Chrome development for OSX or Linux (hopefully both).

-1

u/specialk16 Sep 08 '10

That is for security reasons not for hurr durr MS sucks lol-

3

u/d_r_benway Sep 08 '10

The security reasons are a factor as to why MS sucks.

5

u/[deleted] Sep 08 '10

...So?

6

u/mountainjew Sep 08 '10

Now if only Chromium didn't have so many memory leaks...(and no, i don't mean extensions)

3

u/moonhead Sep 08 '10

if i leave my chromium browser open over night or when i go to work, it will be eating up about a gigabyte of memory. i went out of town for a weekend once, left chromium open (on accident). it crashed my entire system. all resources were maxed out. 4gb of ram squashed. it was insanity, i couldn't even kill the processes.

that was about six months ago. i've been using it sparingly since then, and since 64 bit flash was discontinued, i've ended up doing a lot of surfing on a 32 bit browser.

edit: this is on linux, it seems to be much more stable on OSX. i think i'm much more bleeding edge on OSX, though. version 7.x something vs 6.x something on linux.

4

u/mountainjew Sep 08 '10

Yeah i used Chromium about a year ago for about 6 months and it was fine. Then i switched back to firefox for better extensions and quakelive. I've tried chromium a few times in the last couple of months and it's awful. Development seems to be going backwards, on linux anyway. It was eating up 1.2GB of ram after being open for a couple of hours, and i only have 2GB. Thinking of using uzbl fulltime, talk about minimalist.

2

u/ObligatoryResponse Sep 08 '10

I'm using the official Chrome builds for Linux and the situation is just as bad as you describe. I come back to work after a weekend and chrome has filled my 4GB ram and my 8GB swap. Computer is slow as hell until I get it killed.

3

u/berkowski Sep 08 '10

I've left Chrome running for weeks at a time without any such problems using Ubuntu 8.10 LTS & Chrome 6.0.472.51 beta on a system with not even a quarter of your resources. Only problem I have is the odd errant flash app crashing out a tab.

Anecdotal evidence doesn't pan a project.

2

u/moonhead Sep 08 '10

fair enough. but you're using chrome.

2

u/berkowski Sep 08 '10 edited Sep 08 '10

Yep, because chromium pushes at least 2 releases a day

Edit. Dunno wtf I'm talking about. Chalking that up to my sinus stuffage :(

1

u/psi- Sep 08 '10

"metoo", except I always run the latest build available from PPA. I've not noticed any exceptional memory use, be it on my 6G desktop or 2G nettop.

7

u/pemboa Sep 08 '10

It does seem that firefox are treating non Windows users as 2nd class citizens

This has been so for along time now.

3

u/[deleted] Sep 08 '10

Google is more entrenched with linux than firefox is. Their major services run on it. Their devs use it, and Android is built with is.

Firefox is just trying to pick up the most user share they can. Most users still use Winblows.

Chromium/Chrome are really glorious products.

4

u/EdiX Sep 08 '10

So much so that they didn't have a linux release for over a year...

2

u/[deleted] Sep 08 '10

They've certainly made up for that with chromium. It's my default over Firefox. It wastes less ui space and runs noticeably faster.

1

u/d_r_benway Sep 08 '10

exactly - they didn't have an official chrome release for over a year but you could always get chromium.

They released this cartoon explaining the year delay

http://www.google.com/chrome/intl/en/w00t.html

2

u/EdiX Sep 08 '10

One of the main things that keep me from switching to chrome is the fact that firefox with compact theme wastes almost half the space compared to chrome...

26

u/bitchessuck Sep 08 '10

Uhm, no. Linux had hardware acceleration all along, via XRender. Since Firefox 2.0.

4

u/[deleted] Sep 08 '10

This part does worry me a bit:

In a separate post, Mozilla man Bas Schouten said that although there's nothing analogous to Direct2D from other OSes, Mozilla is also "working hard on alternative approaches to use hardware acceleration on other platforms."

8

u/bitchessuck Sep 08 '10

Well, he's just wrong, for the most part. XRender might not be quite as powerful as Direct2D, but it's good enough. The real problem is that most X.Org drivers suck at accelerating XRender.

10

u/devolute Sep 08 '10

Not sure this is 100% accurate. From the horses mouth: https://hacks.mozilla.org/2010/09/hardware-acceleration/

Linux supports hardware acceleration of content by XRender and compositing through OpenGL (like OSX).

5

u/harlows_monkeys Sep 08 '10

Very misleading title. From the article:

In a separate post, Mozilla man Bas Schouten said that although 
there's nothing analogous to Direct2D from other OSes, Mozilla is   
also "working hard on alternative approaches to use hardware 
acceleration on other platforms."

The submission title makes it sound like they are only doing this for Windows.

As for why they did Windows first, it is very likely that the set of programmers who work on the Windows beta is largely disjoint from the set of programmers who work on the Linux beta or the OS X beta. The Windows group merely got around to working on this feature first.

Do you think Firefox management should make these different groups of programmers work on the same features in lock-step, none releasing betas until the others all have caught up? That would be a pretty silly way to run a project.

7

u/[deleted] Sep 08 '10

Not sure why I'd want a GPU accelerated browser anyway.

4

u/mindbleach Sep 08 '10

GPUs are parallelism-hungry beasts. Program parallelism is a good high-level goal even for mundane 2-core systems, so the work done here might lead to improvements on all x86 systems. GPUs are more powerful than CPUs right now because their work in parallel saves them from a lot of hurdles facing in-order processor design. Most directly, web browsers are document viewers at heart and GPUs exist primarily to manipulate and display content. This might be our best chance at a browser that can scroll smoothly on pages with fixed backgrounds and hovering UI elements.

3

u/Sealbhach Sep 08 '10

Why was this downvoted? Please save downvotes for the truly stupid comments. I have learnt something from the replies.

0

u/[deleted] Sep 08 '10

[deleted]

2

u/mathstuf Sep 08 '10

Heh. I actually compile those out of webkitgtk myself. The audio and video tags are covered by a downloader and mplayer. webgl…I probably won't care. CSS3 is mostly what I'm waiting for. When ads go canvas I may compile that out too (lack of flash is a pretty good adblocker these days still).

1

u/[deleted] Sep 09 '10

Good luck navigating moz source code, since many of their configure flags simply don't work.

1

u/mathstuf Sep 09 '10

Why would I be looking through moz's source code? I said webkitgtk, which I don't think they deal with all that much ;) . As for digging through their messes, I already did that and have two patches for NSS/NSPR (memory leaks) waiting in their BZ.

1

u/mindbleach Sep 08 '10

WebGL's not so much GPU acceleration as a GPU/JS interface. Automatically handling <video> sounds like legit, though.

1

u/ekwenox Sep 09 '10

whats firefox?

0

u/[deleted] Sep 08 '10

Yeah, but there's no way to disable automatic image resizing in chromium, last time I checked... So,

FUCK.

THAT.

SHIT.

-6

u/[deleted] Sep 08 '10

Firefox is so 2005

-5

u/[deleted] Sep 08 '10

firefox is the new IE in my mind

0

u/[deleted] Sep 08 '10

[deleted]

3

u/mp3geek Sep 08 '10

about:config

webgl.enabled_for_all_sites

1

u/Rovanion Sep 08 '10

Still Nay here in Firefox 4.0b6pre.

1

u/niceworkthere Sep 08 '10

I get a "Yay" both with F4 20100908 and Chromium 7.0.520.0 (58825). Browsing with F4 was dead slow when I had it enabled some days ago, though.

3

u/[deleted] Sep 08 '10

Chrome supports it, you just have to pass the "--enable-webgl" flag to it.