I've turned Ley's Awesomium replacement into a CEF wrapper.
For those of you who don't know the fun series of events that led to this, here's a recap:
[quote]
Gmod uses a library called awesomium for embedded browsers. The menu, MOTDs, loading screens, and ingame video players all rely on it. It's widely agreed that it is a pile of dog dicks. It consumes a lot of frame time and is pretty outdated.
A while ago Leystryku made a drop-in replacement for awesomium that kills all it's functionality, but it also kills all the functionality of ingame web browsers.
CEF is a similar thing that isn't a pile of dog dicks. Steam uses it, more companies than I can list use it. Willox, Gmod's new god, made a lot of progress on switching gmod over to CEF, but he had to stop because of technical issues with OSX. The other day Garry chimed in and said something to the tune of "This aint gonna happen". This made a lot of people upset.
For some reason I have this obsession with doing dumb shit in response to garry's dumb comments. Ever since his post, I've been pretty much exclusively working on integrating CEF with Ley's old module, essentially adding drop-in CEF support myself.
[/quote]
[U][B]Features[/B][/U]
[I]I have yet to extensively profile this, but from what I can tell it seems to perform [B]worse[/B] than awesomium. Not sure how much I can do to improve this.[/I]
Awesomium vs CEF
[quote]
[B]HTML5[/B]
[IMG]http://i.imgur.com/n0De2zL.png[/IMG][IMG]http://i.imgur.com/9L2G8si.png[/IMG]
[B]Video[/B]
[IMG]http://i.imgur.com/4SVwZyO.png[/IMG][IMG]http://i.imgur.com/Gh105eH.png[/IMG]
[B]JS Perf[/B]
[IMG]http://i.imgur.com/Gz6IOU5.png[/IMG][IMG]http://i.imgur.com/Tn9Bszy.png[/IMG]
[B]ES6 Support[/B]
[IMG]http://i.imgur.com/ertMZJe.png[/IMG][IMG]http://i.imgur.com/XOyGyTm.png[/IMG]
[B]VBSP.js (WebGL Test, also shows off how much less fucked text looks on a transparent background.)[/B]
[IMG]http://i.imgur.com/b5y15bN.png[/IMG][IMG]http://i.imgur.com/V7WHA4Q.png[/IMG]
[B]Impact on Game Frame Rate[/B]
(Fuck it I forgot to test, doesn't seem to be much difference anyway, will need to more carefully profile this...)
[/quote]
Most of this things are probably not all that important for gmod play, but we got CEF, so I guess we can stop bitching about it.
In addition, you can open dev tools for a browser with keyboard focus by hitting F11. Which may or may not be useful.
[B]Linux when?[/B]
Not yet.
[B]
OSX when?[/B]
Probably never.
[U][B]Known Issues[/B][/U]
:dogcited: [B]THIS IS STILL PRETTY UNSTABLE AND MAY CRASH FREQUENTLY! I REALLY APPRECIATE TESTERS, BUT THIS MAY NOT BE A GOOD THING TO USE IF YOU ENJOY BUILDING! [/B]:dogcited:
[B]- Map icons do not load.[/B] I need to ask a gmod dev about this because I have no clue why the handler isn't working.
- [B]Custom assets in PAC seem broken.[/B]
[URL="https://waffle.io/lunation/Awesomium-Killer-2.0"]Full List[/URL]
[U][B]Download
[/B][/U]
Read the "Installation" section here: [URL]https://github.com/lunation/Awesomium-Killer-2.0#installation[/URL]
[U][B]Testimonials
[/B][/U][quote][IMG]http://i.imgur.com/ZMUfnKJ.png[/IMG][/quote]
[QUOTE=Noi;50633446]You really advanced forward since fnaf pills.[/QUOTE]
Will have the release build up in a few minutes.
a
nice
Release is up.
Cool stuff, Parakeet!
just to let you know.. change the output directory to somwhere else than C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\bin\ (its not c for everone.. its d for me)
btw you need this [url]https://bitbucket.org/chromiumembedded/cef/downloads[/url]
just post the compiled dll alrdy
If you want to build it yourself then you're free to change the output directory of the test build however you see fit.
[B]Edit:[/B] Care to read?
[T]https://i.sli.mg/dDzZSK.png[/T]
I love you F11.
[QUOTE=Redfiend;50633081][T]https://i.sli.mg/dDzZSK.png[/T]
I love you F11.[/QUOTE]
F11 makes you go fullscreen
stupid question here, this wont/can't trigger VAC, right?
[QUOTE=unrezt;50634706]stupid question here, this wont/can't trigger VAC, right?[/QUOTE]
How did you manage to register here
How do I install this?
[QUOTE=Dan41550;50635155]How do I install this?[/QUOTE]
Read the "Installing" section here: [url]https://github.com/lunation/Awesomium-Killer-2.0[/url]
[QUOTE=BillyOnWiiU;50633320]F11 makes you go fullscreen[/QUOTE]
[QUOTE=MadParakeet;50626011]In addition, you can open dev tools for a browser with keyboard focus by hitting F11.[/QUOTE]
[QUOTE=MadParakeet;50630033][B]Edit:[/B] Care to read?[/QUOTE]
Back on topic however, I gave CEF a try.
I've noticed that Garry's Mod tends to crash a lot more often now with CEF. I was trying this out on some Cinema server.
Was a right pain to get working since I have no idea how to use C++ in VS properly, but this is pretty cool, can't seem to get inspect to work though, ended up compiling cef 2526, could that be it?
[editline]3rd July 2016[/editline]
F11 works but now this is happening:
[t]http://i.imgur.com/vE4lBQn.png[/t]
Awesome :D
[t]http://i.imgur.com/B0LtWew.png[/t]
OKAY!...CEF can wait...
Amazing, this is just... I can't even explain. You are a legend. Thank you my friend!
This is great, but can you make it work with this: [url]https://facepunch.com/showthread.php?t=1482414&p=50694942#post50694942[/url]
[QUOTE=Unknown Gamer;50694968]This is great, but can you make it work with this: [url]https://facepunch.com/showthread.php?t=1482414&p=50694942#post50694942[/url][/QUOTE]
The lua server browser actually isn't in lua. But either way, it should work because the lua server browser is just a normal addon
[QUOTE=Leystryku;50697996]The lua server browser actually isn't in lua. But either way, it should work because the lua server browser is just a normal addon[/QUOTE]
Ya it doesn't work. I can use the convars in console, but it seems to force the HTML view on startup. When verifying game cache and using lua brower, it works fine. Only does it not work when I install this.
Just released a new version. I have yet to address Unknown Gamer's issue but I fixed a lot of crashes and text selection works now.
Nice work!
[QUOTE=MadParakeet;50882267]Just released a new version. I have yet to address Unknown Gamer's issue but I fixed a lot of crashes and text selection works now.[/QUOTE]
Great to hear you still keeping this up to date:goodjob:
[editline]15th August 2016[/editline]
Seems that it takes longer for some text to show up, and rapidly selecting text (Or maybe just selecting and dragging the selection, idk) crashes gmod.
[video=youtube;0dRyfM_Tesc]https://www.youtube.com/watch?v=0dRyfM_Tesc[/video]
[QUOTE=Unknown Gamer;50888007]-snip-[/QUOTE]
Same for me, the whole ULX MOTD takes long to load when using website URLs.
Uploaded a new release.
- Fixed menu map icons.
- Fixed drag/drop crash.
- Improved compatibility.
- JS is hopefully no longer allowed to open print dialogs.
Also,
- Not addressed the slow loading issue. I feel like this may be partially fixed by compatibility improvements, but again, not tested.
- I have yet to extensively profile this, but from what I can tell it seems to perform [B]worse[/B] that awesomium. Not sure how much I can do to improve this.
So gmod runs worse with your awesomium killer 2.0?
[QUOTE=MadParakeet;50916857]- I have yet to extensively profile this, but from what I can tell it seems to perform [B]worse[/B] that awesomium. Not sure how much I can do to improve this.[/QUOTE]
I can confirm this. Situations where I get ~150FPS with Awesomium, I get ~45FPS with this.
[QUOTE=Amplar;50916930]So gmod runs worse with your awesomium killer 2.0?[/QUOTE]
I just find it ironic that people call Awesomium shit and that coming up with something else would be better. This is released here and its shown to be better than Awesomium but yet performs worse. I'd agree that with time this could get better and surpass Awesomium in terms of performance and efficiency but we'll see. Thanks for all the hard work man :)
[QUOTE=Noi;50928026]Awesomium is old shit that should be burned into ashes and buried deep under ground; at least this thing respects features that any respectable browser should have.[/QUOTE]
Listen, Show people that this replacement absolutely SHITS over Awesomium in terms of efficiency and performance. Then maybe that statement will be believable.
Otherwise its no different than the kid who adds you on steam and says
Kid: "Hey you own server right?"
...: Yes, i do why?
Kid: "I can code for your server and develop im good"
...: What can you code? Any scripts you released?
Kid: "I can code ulx"
[QUOTE=Keosan;50954835]Listen, Show people that this replacement absolutely SHITS over Awesomium in terms of efficiency and performance. Then maybe that statement will be believable.
Otherwise its no different than the kid who adds you on steam and says
Kid: "Hey you own server right?"
...: Yes, i do why?
Kid: "I can code for your server and develop im good"
...: What can you code? Any scripts you released?
Kid: "I can code ulx"[/QUOTE]
Because replacing a game's browser engine and being perfectly honest about its shortcomings is exactly the same thing as being a "darkrp dev" skiddy.
School is starting up again so this week is going to be rough, but I'll see if I can do anything about the performance soon. I might even see if I can jury rig it to work with steam's built in browser engine, but that will probably involve more hackery and possibly more performance degradation.
Sorry, you need to Log In to post a reply to this thread.