242 points · by bpierre · 8y ago · 74 comments
Also a great read for anyone interested in long-form technical articles that try to serve a wide range of reader types.
It can currently show a window and render moving rect from vue.js template. There's still a lot of work to be done, webrender does too little to be just drop in replacement for electron but it might be worth watching if you're interested in anything like that (lightweight cross-platform opengl-rendered gui apps developed in react/vue/angular/...)
This is my first rust project, so I'm not sure if I would be any help
I also think it's better to have as much GUI part as possible in typescript, try-and-refine cycle is shorter and imagine how it could be with live/hot-reload
What I'm trying to do is something like electron but lighter, faster and memory-savvy. I think it could use azul, so thanks a lot :-)
https://github.com/cztomsik/node-webrender/blob/master/examp...
https://www.youtube.com/watch?v=hXzLC6ArlgE
Slides:
https://github.com/MadRust/talks/blob/master/slides/meetup3_...
I'm guessing "standing" should be "setting"? Anyway, doesn't seem to work just yet for nightly. I enabled in about:config, but get "unavailable by runtime: WebRender not ready for use on non-e10s Android". Also, "WEBRENDER_QUALIFIED: blocked by env: Has battery"
I filtered by e10s and electrolysis in about:config but couldn't find anything
stand up (intransitive) ~= stand from a sitting or lying position
stand up <direct-object> == erect, build, appoint, enact
stand-up, upstanding (adjective) == moral, ethical
stand-up [comedian] == actually standing on ones feet
https://english.stackexchange.com/questions/125681/usage-of-...
It's very early days currently so you're not missing anything, but as it gets more stable I'm sure it'll be easier to try out.
https://bugzilla.mozilla.org/show_bug.cgi?id=1453367#c13
says to download the "geckoview_example" app's APK:
https://queue.taskcluster.net/v1/task/AY-d7ns9QOGZuFj3syrsDQ...
and then remotely launch the geckoview_example app from a connected desktop machine:
adb shell am start -n org.mozilla.geckoview_example/.GeckoViewActivity --es env0 MOZ_WEBRENDER=1That said, can't wait for this to come out of beta!
Could be this bug, for example: https://bugzilla.mozilla.org/show_bug.cgi?id=1490991 Maybe worth chiming in if it is.
Its a shame that GPU support by Mozilla products is in such abysmal state. Meanwhile Google has working hardware accelerated video decoding AND decent GPU support in Chrome.
Hardware accelerated video decoding is barely worth it on Linux. Crashes galore. Does Chromium even enable it by default?
The problem is not writing the "GPU support", but working around the mountain of Xorg bugs that it triggers. As an example just this week, I recently ripped out OS compositing support from WebRender on X because it was simply impossible to deploy without crashing. (It will still work on X, but energy usage will be worse.)
You may put GPU support in quotation marks, but Chromium is way snappier and faster than Firefox nightlies on my Linux box, and I suspect taking advantage of the GPU is a part of the equation.
I also suspect the whole pipeline is more optimized on Chrome. Firefox has ~3x the input latency[1] and unlike Chrome, also slaughters my CPU when watching youtube videos.
Its not like Mozilla is under-resourced. I think its just a matter of priority[2].
[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1408699
[2] https://blog.servo.org/2018/03/09/servo-and-mixed-reality/
https://bugs.chromium.org/p/chromium/issues/detail?id=463440
https://chromium-review.googlesource.com/c/chromium/src/+/53...
It seems to be pages that are actively modifying themselves. If they just sit there being static the power use isn't a problem.
After setting gfx.webrender.all to true and restarting, check about:support and you should see "Compositing: WebRender"
Of course you may still hit bugs.