Raspberry Pi 3 Video Playback Performance
past Jamie Dickson and Benjy Boxer
Tl;dr We recently released Parsec for the Raspberry Pi, allowing you to play PC games on the Pi streamed from your own gaming PC or a cloud machine at 1080p / 60 FPS. Check out the demo video beneath, sign upwardly for our product here if you lot want to endeavor information technology out, or join our community word on Discord.
Concluding fall we released Parsec, a standalone cloud gaming system that tin can exist used to play games remotely, either on your own PC or in the cloud via AWS. Today nosotros're proud to announce that nosotros're adding support for the Raspberry Pi.
Why?
The dream of the thin client — one that could be skilful enough not just for bones computing tasks, only even highly demanding tasks such as gaming — has long eluded usa. A few decades ago, when computers were much scarcer, this used to be the default way of interacting with a computer via Teletype or the like. Since you couldn't really do much with the machine, these types of thin clients could pretty much do anything you could do locally, admitting with added latency.
But as engineering progressed, the incredible experiences a computer could create locally greatly outpaced our power to deliver these experiences remotely. We moved from a world of text based terminals to GUIs and real-time rendered 3D video, and with those things dramatically more data to ship effectually. In the golden days of Windows, we didn't even try — you would go to the shop and buy 1 or more concrete installation disks, then install and run the software on your PC. All processing was done locally, and all data generated by the applications was also stored locally.
And so the internet happened. The web introduced a hybrid model where some of the processing still happened locally, but near of the processing happened remotely on a server. Essentially, perform the heavy lifting on a server somewhere, and deliver a lightweight interface to the user via HTML and javascript. At the same time, this immune the application's data to be stored remotely, freeing the user from a single PC. This model has generally dominated awarding delivery for the past 20 years, with a fleck of a regression since the dawn of the mobile era bringing us dorsum to shipping binaries effectually.
But something is changing, and rather than state the determination, I'll pose a question: If internet latency were depression enough, bandwidth were loftier enough, and video processing were fast enough, could it be possible to do away with your local interface entirely and simply make a remote interface your "daily driver?" We believe the answer is "yes", and that the necessary components are coming together to make the thin client a reality in today's earth. And to us, nothing exemplifies this concept better than playing PC games delivered via a cloud machine on a Raspberry Pi.
https://world wide web.periscope.tv/w/1RDGlRpQlzRxL
How Nosotros Made Information technology Work
The core engineering is explained in detail here, but we've done a lot to make the Raspberry Pi application as low latency as possible.
While many of the states think of a the humble Raspberry Pi as a standard linux machine, under the hood it has a lot more than in common with your cell phone than information technology does with your desktop PC. For graphics, the Pi uses a GPU called the " VideoCore 4". This little Broadcom invention allows united states to interact with information technology via a standard that has been dubbed OpenMax. At present, for what it is, OpenMax gets the chore done, but the documentation seems a bit thin at best. There is a lot of hunting through header files and old forum posts to figure out exactly how these functions work.
Existence of a graphical nature, our initial idea was to make Parsec work in X Windows. Getting the basics working wasn't bad, but we had 1 glaring flaw to deal with: the mouse cursor was behind the video. Now, OpenMax cooperates fairly well with the other standards in place on the Pi, and the item effect we were having here was the interaction between OpenMax'due south video_render layer and the fact that Ten's mouse cursor was rendered along with all of its other GUI elements on the same layer. The solution to this was to just scrap X11 entirely.
Using Dispmanx, the Pi gives the states a overnice style to render video without the use of a graphical user environment. Fortunately, Parsec counts on a well-made library named SDL2 to handle nearly of the input. This gives us a nice cross-platform way to support the huge number of input variations that exist system to system. In this example, as of SDL2.0.5 some enterprising soul has written a preliminary native implementation of mouse treatment for the Raspberry Pi. Getting this going using the integrated SDL hint to change the window'south layer got video and a mouse cursor pretty quickly, just that's where the going got a scrap rough.
The SDL2 mouse functions were a good start, but using the cursor as dynamically every bit Parsec does, a few cracks started to appear in the mouse functionality. Switching between relative and absolute mode caused the cursor to jump around. The "hot" point in the cursor was wrong, eg the I-Beam was selecting with the upper left corner. Like any crimson-blooded American, we did what was necessary: we threw together a fix for the SDL code. You can take a look at a few of the changes we fabricated to SDL hither. Beyond that, there was more subtle tweaking to HDMI frequencies and things of that nature to make Parsec what information technology is, merely those were the big rocks on our way to getting the little $35 Pi to a place where you could play Overwatch on it.
What Is A Raspberry Pi?
For the uninitiated, The Raspberry Pi Foundation released their showtime low powered, cheap figurer in 2012 with the admirable goal to "put the power of digital making into the hands of people all over the earth, so they are capable of understanding and shaping our increasingly digital world, able to solve the issues that matter to them, and equipped for the jobs of the future." These devices range in price from $5 to $35 for the Raspberry Pi 3. Despite the very low price tag, they pack a powerful punch. Over x million Raspberry Pi had been sold past September 2016, and the projects that people are building on the hardware range from simple hobby projects to sophisticated robots.
The Raspberry Pi 3 was a great candidate for us to build an application that can connect to your gaming PC or one in the deject. Although it but has a quad core ARM fleck, it has a loftier quality H.264 video decoder, Bluetooth support for peripherals, and an HDMI port.
What's Making This Possible Today?
Pinch algorithms and defended hardware for video encoding and decoding are now standard on every device manufactured since 2012. The skillful news is that this is getting fifty-fifty better with the introduction of the H.265 codec in 2015. By 2020, we'll all have an H.265 hardware decoder and access to more bandwidth for higher quality, lower latency video streams.
http://s3securitysystems.com/h-265-the-arrival-of-video-compressions-time to come/
Additionally, the toll and availability of bandwidth continue to move in favor of ubiquitous access to significant amounts of bandwidth. In fact, our median user has a 54 Mbps and 21 Mbps connection in the U.s.a. and Europe respectively.
Finally, deject providers take been investing substantial resource in GPUs over the last couple of years. Amazon, Microsoft, and Google all announced new GPU instances available throughout the earth. These GPU instances are primarily valuable to machine learning algorithms for artificial intelligence projects, but they're too very valuable to Parsec and others trying to move rendering to the cloud.
How Do I Start Playing On My Raspberry Pi?
Our goal is to both expand the market for gaming by giving people access to gaming hardware from the cloud and to show that computers-equally-a-service is the future of computing. With Parsec for RPi, nosotros're decoupling expensive PC hardware from gaming, so anyone with a screen, a $35 reckoner, and a good internet connection tin play their favorite games at the highest settings.
- Create an account on Parsec
- Selection upwardly a Raspberry Pi iii if y'all don't accept one
- Download and install the Parsec on your RPi 3
- Follow the ready up instructions in the Readme or hither
- Connect to your gaming motorcar via the Parsec server software
- Win!
- Share
Source: https://parsec.app/blog/the-thin-client-start-playing-pc-games-on-your-raspberry-pi-adb23a5ebd85

0 Response to "Raspberry Pi 3 Video Playback Performance"
Post a Comment