微软:放弃 edge 浏览器是因为谷歌不正当竞争

2018-12-18 16:55:33 +08:00
 mmdsun

微软:放弃 edge 浏览器是因为谷歌不正当竞争

IT 之家 12 月 18 日消息 最近微软宣布 Edge 浏览器放弃开发的 EdgeHTML 浏览器引擎,转投使用谷歌的开源项目 Chromium 引擎。虽然很多人对于微软这一举动表示欢迎,但是还是有人会问,相比于 EdgeHTML,Chromium 所需要的资源和电量都比较高,微软为什么非要改用别家的渲染引擎。

我最近在 Edge 团队工作,我们决定停止使用 EdgeHTML 的原因之一是因为谷歌不断对其网站进行更改打压其他浏览器,这样的变动我们无法随时跟上。比如,谷歌最近在 YouTube 中添加了一个隐藏的空 div,这使得 Edge 浏览器的硬件加速无法正常使用( Windows 10 十月更新中已修复)。 除此之外,EdgeHTML 的视频加速功能让设备的电池使用时间远超 Chrome,但在他们搞破坏的那一刻开始,就开始宣传 Chrome 在视频播放的续航上优于 Edge。 令人遗憾的是,Chrome 取得的领先优势,并非来自于巧妙的优化工作,而是 YouTube 网站上动了手脚。总而言之,他们只让网络变得更慢。 虽然目前无法确定他们是否有意为之,但我的很多同事都非常相信,他们亲自参与了调查。作为补充,当我们发去质询时,YouTube 拒绝了删除隐藏空 div 代码的请求,但并没有进一步的说明。而这,仅仅是其中的一个案例。

10153 次点击
所在节点    分享发现
65 条回复
honeycomb
2018-12-18 20:25:21 +08:00
@morethansean 这件事是真的,当时 YouTube 出这件事的时候就抱怨过。
verrickt
2018-12-18 20:29:47 +08:00
https://news.ycombinator.com/item?id=18697824

I highly suspect that the issue is that Windows video playback can only use scanout compositing if there is nothing on top of the video. Scanout compositing is significantly more energy-efficient than standard framebuffer compositing because it avoids a memory copy each frame.

This ultimately comes down to hardware limitations. GPUs are limited as to what they can compose during scanout, because of memory bandwidth limits. Each plane that you can alpha-blend together at scanout time multiplies the amount of memory fetches per dot you have to do. On today's high-DPI displays, the bandwidth going out to the display is very high to begin with, so you can't afford to multiply that by much. That is why putting something on top of a video is tricky: you're adding another layer to be alpha-blended on top, increasing your memory bandwidth by 50% over the two layers you already have (RGB for the background plus YUV for the video). The user's GPU may or may not support that--as I recall, prior to Skylake, Intel GPUs only had two hardware planes, for instance.

I'm not surprised that Microsoft just used "are there any DOM elements over the video?" as a quick heuristic to determine whether scanout compositing can be used. Remember that there is always a tradeoff between heuristics and performance. At the limit you could scan every pixel of each layer to see whether all of them are transparent and cull the layer if so, but that would be very expensive. You need heuristics of some kind to get good performance, and I can't blame Microsoft for using the DOM for that.
wdv2ly
2018-12-18 20:30:11 +08:00
不是,一家商业公司,说自己不作恶也就算了,你们还真信了???它的本质就已经决定了不可能,有讨论的价值吗?
sammo
2018-12-18 20:32:14 +08:00
Google 系的网站,用 Google 专门为之开发优化的浏览器
其他网站,用 firefox
完美
ssynhtn
2018-12-18 20:35:43 +08:00
证明了 edge 的硬件加速很渣?
eeeeeee
2018-12-18 21:06:32 +08:00
GV Web 在 Firefox 上也打不开噢
greenskinmonster
2018-12-18 21:57:37 +08:00
@eeeeeee #26 为啥我可以尼?还用网页拨打了我的手机。Firefox 64 Linux。
kindjeff
2018-12-18 23:10:46 +08:00
至少有两个槽点吧,其中一个「这样的变动我们无法随时跟上」……
还不是微软自己决定的 edge 要跟随系统一起版本更新,而不是像其他浏览器一样可以独立更新。
12101111
2018-12-18 23:45:11 +08:00
校园网,ipv6 直连 Google,都登陆了 Google 账号,访问 YouTube,chrome 不需要验证码,或者只需要点击一下按钮就能通过,Firefox 需要验证 3-5 张图片,有时还卡住,但是控制台没有报错。此外手机火狐访问 Google 有时会出现上古 UI,因此我现在使用扩展将 Firefox 的 UA 设置为 Chrome (用 Firefox 就是为了扩展)
12101111
2018-12-18 23:53:44 +08:00
@morethansean 游戏无边窗口化比全屏帧数低,这个坑只能在内存显存合一的处理器上解决,这个空白 div 起到窗口化类似的作用
leobuf
2018-12-19 00:14:24 +08:00
当初微软怎么玩死网景的,风水轮流转
morethansean
2018-12-19 00:26:59 +08:00
@12101111 然而空 div 只是一个 nopaintlayer 没有任何需要渲染的像素也不需要任何 compose 而且后续补丁他们自己也修复了啊...
eeeeeee
2018-12-19 02:25:05 +08:00
@greenskinmonster 难不成我中奖了? macOS Windows 下的 Firefox 都不行 :doge:
lrxiao
2018-12-19 06:58:36 +08:00
shadow DOM 的新闻
https://www.cnet.com/news/mozilla-exec-says-google-slowed-youtube-down-on-non-chrome-browsers/

我也很好奇 empty div 是个什么情况
594duck
2018-12-19 08:07:37 +08:00
我的 macair 只用自身的浏览器,google 用了续航猛掉。同时不信邪,试了一下发现果然。然后告诉我

一定是 apple 这个臭不要脸的坑 google,从此敬而远之
zuoshoufantexi
2018-12-19 08:36:41 +08:00
楼上好多人是什么逻辑?新闻说的是谷歌做恶了……然后你说的是别人也做恶?我去……
congeec
2018-12-19 08:45:56 +08:00
@594duck 苹果还把 flash 坑死了,flash 并不能在 Mac 上真正的用 gpu 加速。大家都信 flash 性能渣
66beta
2018-12-19 08:58:50 +08:00
netscape 黑人问号脸❓
shintendo
2018-12-19 08:59:12 +08:00
网景?网景自己做的那是什么屎,也能赖微软?
lniwn
2018-12-19 09:11:54 +08:00
@congeec 确实,flash 性能并不渣,只是猪队友太多。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/518683

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX