11 ms·
Run your own high-end cloud gaming service on EC2 (2015)
- ghouse 7y agoThe paradigm pendulum continues to swing back and forth between geographically centralized and distributed computing.
- mentos 7y agoGame developer here, I'd love to have a cloud gaming PC as a workstation for development. Anyone know of any companies/services that offer this?
- letharion 7y agoI'm immediately drawn to the idea of trying to build such a service. I'll get this started on Friday, I know I have some time over then. :D
- cjbconnor 7y agohttps://shadow.tech https://shadow.tech offers such a service
- deleted 7y ago[deleted]
- littldr 7y agoYou may want to try http://shadow.tech/ http://shadow.tech/ Reasonable prices and works very smooth.
- toast0 7y agoI haven't used it, but I think this might work https://aws.amazon.com/products/end-user-computing/desktop-as-a-service/ https://aws.amazon.com/products/end-user-computing/desktop-a...
- tommsy64 7y agoParsec[1] is a Discord-like game-streaming host and client. I've used it a little and it seems to work just as well or better than Steam Stream or GeForce Now. Furthermore, it has virtually no setup and works across WAN without a VPN. [1] https://parsecgaming.com/features/ https://parsecgaming.com/features/
- boxerbk 7y agoThanks for sharing Parsec!
- marvion 7y agohttps://www.paperspace.com/ https://www.paperspace.com/ does exactly this. Tried it for gaming and it was a great experience. Gaming only works if you are near their data centers though - afaik US and NL; got a high latency in Germany, but that's not the their fault. You'll find 10$ referral codes online to try it for free.
- ineedasername 7y agoPaperspace works pretty well also Shadow
- QuinnWilton 7y agoFor what it's worth, my roommate does a lot of his development on Shadow. He works on one of the Nintendo Switch emulators, and his laptop isn't powerful enough to compile and run things at a reasonable speed. I could absolutely see cloud gaming machines being a useful platform for game development.
- benologist 7y agoYou could use EC2 but Geforce Now has left beta and announced pricing and it is much cheaper at $5/month. Doing this on-premise is also pretty tantalizing - I watched a video recently of Linus Tech Tips where he built a 64 core Threadripper and used virtual machines to replace four physical computers in his home including two players simultaneously gaming. https://www.youtube.com/watch?v=jvzeZCZluJ0 https://www.youtube.com/watch?v=jvzeZCZluJ0
- gruez 7y ago>Doing this on-premise is also pretty tantalizing - I watched a video recently of Linus Tech Tips where he built a 64 core Threadripper and used virtual machines to replace four physical computers in his home including two players simultaneously gaming. so basically a mainframe? I can't imagine it's economically viable though. a 64 core threadripper costs more than eight ryzen 3700x and clocks lower.
- chrisseaton 7y ago> and clocks lower And that's the core problem, isn't it? Aren't games notorious for being mostly sequential workloads?
- WrtCdEvrydy 7y ago> the core problem I see what you did there.
- stordoff 7y agoI'd be interested to know if this has changed recently - the Xbox One and PS4 are both 1.6GHz/1.75GHz 8-core machines.
- p1necone 7y agoWhen you're designing for that known console configuration you probably make use of the extra cores if you need it. And the really cpu intensive genres (strategy games mostly) don't tend to get console releases. As 4 core/8 thread machines become basically the minimum you can assume most pc gamers will have we'll probably see devs making more use of multithreading everywhere.
- rcarmo 7y agoI have a comparison between NVIDIA's service and an equivalent setup on Azure here: https://taoofmac.com/space/blog/2018/09/30/1600 https://taoofmac.com/space/blog/2018/09/30/1600 The setup I used is here: https://github.com/ecalder6/azure-gaming https://github.com/ecalder6/azure-gaming ...and has been kept up to date (it was annotated last month, and the config is stable).
- gnerix 7y ago> €1.4 an hour for the CPU/GPU alone, plus a couple more Euro for hard disk usage and long-term storage (usage was pretty high during setup, which accounts at least for half the amount) The Azure solution sounds much more expensive than the prices quoted in the article
- rcarmo 7y agoAt the time I did not have access to preemptible instances, which lowers costs considerably. You did not quote the next few paragraphs...
- myhf 7y agoThis still seems like a better option than Stadia or GeForce Now, because it should support all PC games (including store-exclusive titles like Satisfactory, Untitled Goose Game, and The Outer Worlds).
- jophde 7y agoOr just spend $500 one time on a local rig one time that can max out 1080p at 100+frames instead of paying more per year for less. I know this is for private use but the only point of game streaming is so that companies can put ads in stream.
- crazygringo 7y agoOr maybe you're in a small apartment without space for a desktop and don't have time to game that often so this is actually a better, more cost-effective solution? Everybody's needs are different -- there's no reason to dismiss this.
- Aeolun 7y agoI find it hard to imagine I’ll ever live in an apartment where I won’t make space for a desktop. But my experience with cloud gaming on EC2 has been pretty great too, as I’m getting older I feel less and less inclined to shell out for a new video card every two years.
- jophde 7y agoAs long as you are fine with 1080p cards from 5+ years ago are fun. 4k is generally not worth it.
- cumunism 7y ago1440 @ higher refresh than 60 and 4k@60 is very well worth it these days. especially on a nice LG OLED with gsync ;)' HDR is pretty sweet, too. HN is horrible for gaming/pc building advice. much better places.
- jophde 7y agoThats what I have and a 1070 is still find for most games.
- Sohcahtoa82 7y ago
- smartsystems 7y agoYeah, do not do this. You'll end up with a $1000 bill from Amazon becuase you forgot to shut it down and discover very quickly they don't care at all once they already have your money.
- scarecrowbob 7y agoFWIW, I did that once for an unrelated project and they ate the 1200 bill for a running EC2. I dunno if they'd eat that cost again, and I wouldn't try it on purpose. But keep in mind that they have an incentive to do this: it's the cost of acquiring users without scaring them about a possibly humongous bill. I now have better billing alarms set.
- Bombthecat 7y agoThey should just add an "shutdown at cost x option" for private users at least..
- awinder 7y agohttps://aws.amazon.com/getting-started/tutorials/control-your-costs-free-tier-budgets/ https://aws.amazon.com/getting-started/tutorials/control-you... Under section 4, anyone can set up an aws cost budget
- arianestrasse 7y agoYes, you can set up a budget but it's only used for alerting. The services will happily keep running and building up to that 1k bill if you miss the alerts or don't react to them.
- thaeli 7y agoThose alerts can invoke a Lambda that shuts the service down, which is a ridiculously baroque solution but it's what you get.
- jmakov 7y agoSo is Steam so optimized or how come VNC/x2go is still reloading the screen so slowly?
- Nextgrid 7y agoI believe they use the GPU for video encoding, while most Remote Desktop solutions are CPU-only. Also, I wouldn't be surprised if the encoding used by Steam is lossy, which is fine for games and fast-moving video but would be completely unusable for text.
- nickflood 7y agoMost remote desktop solutions don't even use video and instead transmit parts of the screen that have changed as still images. When not consuming media content this approach is better because the fine details look more crisp. In video the finer details are limited by a bitrate & key frame frequency.
- Havoc 7y ago> <50ms I don't think that's gonna be much fun. Especially not if you're used to playing on a powerful local machine
- Nextgrid 7y agoI've tried Playstation Now on a PS4 with a 1Gbps enterprise-grade fibre connection and the latency was definitely noticeable, despite single-digit pings. I'm starting to think the latency from the video encoding/decoding could be a bigger issue than the network itself.
- dsissitka 7y ago> I'm starting to think the latency from the video encoding/decoding could be a bigger issue than the network itself. It depends on the setup but encoding and decoding combined can be done in less than 7 ms (1 frame at 144 fps) on good hardware: https://blog.parsecgaming.com/testing-game-streaming-input-latency-on-parsec-with-diy-instructions-49ae838f45a7 https://blog.parsecgaming.com/testing-game-streaming-input-l... Last year on more modest hardware I would regularly see around 12 ms (1 frame at 83 fps).
- p1necone 7y agoMy experience is that anything with direct camera control via mouse doesn't feel good unless you're streaming from a machine on a local network, but if you're using a controller it's not really noticeable.
- stordoff 7y agoIt's probably going to vary from user to user - even streaming on my local network (1Gbps wired), playing with a controller feels less than great.
- ineedasername 7y agoI played most of Assassin's Creed Odyssey through Shadow and mouse camera control was never an issue. Felt as smooth as local. Of course, with all of these services, local network conditions play a huge part. I live near a few urban centers where most of these services have some presence.
- anaisbetts 7y agoIf you're thinking about doing this, it's actually way easier with Parsec, there are even scripts to set it up for you - https://github.com/jamesstringerparsec/Parsec-Cloud-Preparation-Tool https://github.com/jamesstringerparsec/Parsec-Cloud-Preparat.... It'll also set up an auto-shutdown script that prevents you from leaving it on and racking up a huge bill
- Aeolun 7y agoParsec stopped providing the machines though. So now it’s actually quite inconvenient.
- anaisbetts 7y agoWhy? The vast majority of us here can spin up an EC2 machine and run a script, that's literally all you have to do
- boxerbk 7y agoThanks for sharing Parsec! I'm the co-founder. It's really great that the script is helpful.
- anaisbetts 7y agoI really love the product, it's super fast and dead-easy to use. Have you folx thought more about Android TV, I'd love to get it working on Shield in a way that's usable (right now you get to a Windows login screen and you're stuck b/c you only have a controller)
- acd 7y agoIts good for occasional cloud gaming. Otherwise I hope the PC game industry will remain alla carte dinner instead of all you can eat buffet cloud gaming. Reason being income sent to the game industry its healthier to pay for computer games directly to the developers.
- NicoJuicy 7y agoI'm not sure, but cloud gaming seems to be one of the "new" overrated hypes. Based on that it's done before and didn't get that far ( Gaikai and OnLive ), but nobody seems to remember that.
- z3t4 7y agoTiming is important. The enemy is latency. Today you can get below 1ms network latency. But as networks latency has improved, latency from IO and most important - the screen, has gone up. So there is still work to do. You would basically need a custom made device that you plugin directly into your fiber outlet. Something like a VR helmet.
- tmerr 7y agoAnother way to view it is that like electric vehicles cloud gaming is not a question of if, but when. OnLive was released when most internet connections were still crummy, and before HD capable computers were embedded in TVs, smartphones and tablets. Despite all of that it still worked pretty well, but at that time I thought if I can run the game on my desktop why bother? Nowadays I don't have a gaming desktop capable of the newest games, so I think about it differently.
- NicoJuicy 7y agoElectric cars didn't even take off yet. It's 1-2% of total car sales and valued like 90% There is also a lot of gouvernement subsidies die electric cars and the range was not good. There internet in those days was as good as it is now in Western countries. We'll c, but I'll be happy to place an online money bet.
- detaro 7y agoWhere is it a "hype"? Opinion overall (users, press, ...) seems fairly mixed - but it does have some mainstream-ish appeal this time.
- bjornjajajaja 7y agoCurious if it would be possible to do this setup with VR as well.
- crummy 7y agoI don't see any reason why it shouldn't be possible, but VR is extremely latency sensitive so I think the experience would suffer pretty badly.
- erinaceousjones 7y agoVR streaming over local 1gbit ethernet is certainly possible -- I use Virtual Desktop to stream PCVR to my Quest and I wouldn't say the latency is noticeable, at least for me anyway. It's not really playable on 2.4GHz (so, max ~300mbit/s) wireless but is nearly flawless on 5GHz (max ~840mbit/s ?). Although the stream itself maxes out at 50mbps. Reported stream latency is about 15ms. FPS games like Skyrim work great, even latency-sensitive games which require quick reactions like Thumper do pretty well. I get lower latency / better image quality using Quest+VD than I do a standard 1080p stream on my Steam Link..... I think that the VR video stream is already a 180 degree stereoscopic format helps with the latency; you're only ever looking at a subset of the stream so when you move your head around it's the same latency as local VR. Only noticeable thing is if you move your head really quickly to over your shoulders it can take a few milliseconds for the footage to appear.
- archi42 7y agoI doubt it: For VR, latency and jitter are much more important than for other games. My GPU (old R9 290) has ~15ms delay in the encoder when using parsec for streaming. Add a few ms in the decoder (1ms), plus whatever the network/Internet adds to that. Compression artifacts on a flat game are also quite noticeable and the reason I did not yet put my desktop next to my home server and go fanless in the study room. Oh, and that's with 1080p/60Hz at 20MBit - my Vive has a higher resolution and refresh rate ;-)
- Ceno 7y agoYep! It's very common in the oculus quest community. It's not on EC2 though. The best supported cloud service is called Shadow
- shog_hn 7y agoThis is a nice article to prove it can be done, but honestly I would rather setup a dedicated gaming rig. If you're serious about gaming you'll soon rack enough hours where your EC2 Spot costs exceed the initial investment in your own hardware. Also the open UDP and TCP to 0.0.0.0/0 in the security group made me cringe. At least set it to your current IP /32 and perhaps set a script that watches your public IP and updates the SG automatically when it changes.
- ineedasername 7y agoI think a dedicated rig + Hamachi or other VPN of choice is an ideal option for most use cases.
- CapacitorSet 7y ago>$0.11/hr Spot instance of a g2.2xlarge I'm not an AWS user, but don't spot instances risk being shut down/paused/etc at any moment? It seems like a bad solution for remote gaming.
- vijaybritto 7y agoYes they may get terminated within 2 minutes of creation. Thats why they are cheaper. Still this is a demo of what can be done and what's possible now. This can never be used for any reasonable gaming as its volatile.
- ramon 7y agoLightsail for fixed pricing a month.
- Operyl 7y agoDoes Lightsail have GPU instances?
- duskwuff 7y agoNope. Lightsail has much more limited instance type options than EC2. https://aws.amazon.com/lightsail/pricing/ https://aws.amazon.com/lightsail/pricing/
- Operyl 7y agoThat’s what I thought, I couldn’t find any GPU instances. Figured the GP knew more than I did :).
- ramon 7y agoFPGAs and GPUs only with EC2 https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-frequently-asked-questions-faq https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amaz...
- deleted 7y ago[deleted]
- MrGilbert 7y agoI have a gaming / home server at home. Using Unraid, it serves a gaming vm, a NAS, smart home (with home-assistant and Node-RED), Ad-Blocking (secondary Pi-Hole), a media server (Plex) and a Unifi-Controller. It‘s based on a Gigabyte x470 and a Ryzen 5 2600. The rig is watercooled (using ZMT tubing), which makes it super silent (and I don‘t need a heater in my office any longer. It‘s amazing how efficient watercooling is - yet, the heat still has to go somewhere). The gpu is a Sapphire Pulse Vega 56. All in all, the complete rig consumes 80 watts in idle, and 130 watts when I‘m using the gaming vm for surfing. When gaming on it, consumption can go up to a reasonable 500ish watts. I‘m also using a Thinkpad x230 as my „roadwarrior“. While „the cloud“ might be cheaper, I love to have everything „at home“.
- dang 7y agoDiscussed at the time: https://news.ycombinator.com/item?id=9364748 https://news.ycombinator.com/item?id=9364748 also https://news.ycombinator.com/item?id=9864534 https://news.ycombinator.com/item?id=9864534
- lawrenceyan 7y agoUsing a commercial service like Google Stadia would be far cheaper than this no?
- JOnAgain 7y agoI tried doing something like this last year. It took a long time to get right. When it finally worked, the bill was far higher than i had estimated due to bandwidth. Overall, i love the idea, but it was a huge pain and not worth my time.
- wbraun 7y agoI followed this tutorial when I Fallout 4 first came out and I had not yet built a desktop. It worked pretty well and, given spot prices, was pretty cost competitive with a gaming desktop if you only cared about one or two games. AWS inbound traffic is free but persistent storage is not so I downloaded the entire game whenever I spun up the AWS instance, which probably happened 10+ times. I still wonder how much that cost Steam in terms out outbound traffic....
- Ideabile 7y agoSame year I release this video https://www.youtube.com/watch?v=fB8htu_Bxpo https://www.youtube.com/watch?v=fB8htu_Bxpo Is basically the same implementation, I must say that keep the instance open const me a bunch of money in the end.
- fzaninotto 7y agoI'm really surprised that none of the cool kids here comment about the astronomical ecological cost of such rigs. Reminder: IT is responsible for nearly 4% of CO2 emissions worldwide [1]. Video streaming represents 60% of that [2]. In a nutshell, cloud gaming is like switching on an oven at full power with the door open. If a majority of people use that kind of solution, the catastrophic effects of global warming will be even worse. The true problem is that we're not paying the real price of AWS and other cloud services. We're expecting our children to pay for the ecological impact. [1]: https://theshiftproject.org/wp-content/uploads/2019/03/Executive-Summary_Lean-ICT-Report_EN_lowdef.pdf https://theshiftproject.org/wp-content/uploads/2019/03/Execu... [2]: https://www.dw.com/en/is-netflix-bad-for-the-environment-how-streaming-video-contributes-to-climate-change/a-49556716 https://www.dw.com/en/is-netflix-bad-for-the-environment-how...
- bskap 7y agoDoes that account for data centers getting built primarily in areas with easy access to renewable energy? I suspect the fuel mix for your average Amazon data center to be considerably greener than running the same power rig out of your home. I don't know if it's enough to offset the cost of the networking equipment between the DC and your house, but it's not so clear cut that this would be worse than buying a gaming rig and running the game yourself.
- ezzaf 7y agoThe second source you link to states 60% of that energy is in manufacturing, and 40% in use. Wouldn't that imply using a hosted solution only when you need it would be more environmentally friendly than buying your own gaming PC?
- hedora 7y agoThe pie chart in [2] implies streaming is << 60% of CO2 from IT. Networks generate ~16% of the CO2 of IT, and only 60% of that is streaming video. TV manufacturing is another 11%. All device electricity usage is another 20% (there’s no breakdown there, but most of the streaming device electricity goes to the screen, which you’d pay for with broadcast or dvd playback). Video streaming servers should be relatively low energy vs. the other servers running in the data center.
- arcticbull 7y agoHaha I posted this years ago. Glad it’s still helpful! Funny it’s made it’s way back to the front page so many years later.
- Joyfield 7y agombit != Mbit.