VIRTUOS EXPERTS TALK #9
The tenth in a series of regular articles highlighting learnings and best practice from Virtuos' global development, Art and VFX teams.
In November 2019, Google released Stadia – its own gaming platform. Stadia’s primary unique selling point was that it functioned as a cloud gaming service; the player would be fed a high-quality stream of their game of choice, while the actual program and the computing power required to run it remained within Google’s server infrastructure.
In line with the plan to release new games beyond Stadia’s initial launch, PlayerUnknown’s Battlegrounds (or PUBG for short) was selected as the first battle royale shooter to be adapted for the platform, with Virtuos executing the project in close partnership with PUBG Corporation and Google.
The team working on PUBG for Stadia was charged with four objectives:
- To exhibit beyond any reasonable doubt that an adaptation of the game for Stadia was viable;
- To ensure stable framerate at all times;
- To upgrade and validate select middleware to allow Stadia support, and;
- To integrate Vulkan and Stadia support within Unreal Engine 4.16, to ensure proper rendering of the adaptation.
Challenges and Solutions
Throughout its development, there were several obstacles that the development team had to contend with for the adaptation of PUBG for Stadia.
Challenge #1: Stadia as a brand-new gaming platform
Unlike other consoles featuring years of iteration on their hardware and software, Google Stadia was an entirely new entity, which meant that the knowledge and experience required to develop and/or adapt a game had to be gained from the ground-up.
This, along with the fact that there were no pre-existing examples for reference, consequently presented the team with a project riddled with unknowns. Everything from the various features and functions of the platform, to the possible support of various control schemes was a question that needed answering before proceeding with the project proper.
The solution to this was a meticulous, comprehensive effort in researching what Stadia can offer and how it worked, while working against time to produce a proof-of-concept version of the game that could run on the platform.
Challenge #2: Laying the groundwork
Right from the start, the Stadia platform presented the team with two roadblocks to contend with. The first was that it featured an architecture based on a hybrid of Linux and Vulkan – a somewhat unique configuration. The second was that the version of Unreal Engine 4 used by PUBG did not support Stadia natively at the time.
In order to successfully show that adapting PUBG to Stadia was possible in the first place, the team first had to invest a significant amount of time and effort into implementing Linux and Vulkan compatibility to the game, while also modifying the UE4 engine to follow suit. Once that was done, the team’s focus shifted to upgrading the relevant middleware to support the platform.
The last and most important milestone for the team was to confirm that this set-up was able to run and render the game, and project the final stream successfully onto a test client device.
Upon verification that this was accomplished, the adaptation work consequently began proper.
Challenge #3: Maintaining stable framerates
As an online multiplayer shooter, it was paramount that PUBG for Stadia run seamlessly across all devices, with no latency nor framerate issues.
The latency part proved to be surprisingly manageable; there were little to no problems of the sort plaguing the team throughout the development process. In fact, the game ran without any hitches on days with decent internet connections, which is incidentally the deciding factor on whether or not a player would experience lag during gameplay.
The more intricate aspect of this challenge lay on the framerate side.
To achieve the best framerate possible, the team first analyzed the functions in the software’s program thread to learn which occupancy rates were higher, before optimizing said functions to reduce the occupancy rates. Next, they paid attention to the quality of the art assets used in-game; if the visual effects are set too high, the increased load on the GPU would may in turn affect the framerate. A balance thus had to be achieved between optimization and fidelity, the exact degree of which was agreed upon in another round of discussions.
To Stadia’s credit, the sheer processing power of the servers working behind the scenes meant that it was possible to achieve a stable framerate and reduce input lag while preserving graphical quality was exceedingly doable.
Challenge #4: Access to Stadia Dev Kits
The team that was assigned to tackle this project is based in Virtuos’ Shanghai studio. While having amassed significant experience in adaptations from prior projects, their location soon proved troublesome as they had no local access to the Stadia Dev Kits.
This issue was solved in two parts. First, part of the team was dispatched abroad to another Virtuos studio in Paris which had the dev kits onsite, allowing the selected personnel to interface with them in person. The rest remained where they were in Shanghai and continued their work via remote connections with the dev kits. This arrangement was met with huge success – since the conclusion of the project, Virtuos has progressively implemented more remote accessibility to various dev kits for its dev teams, allowing sustained productivity even while outside of studio premises.
Conclusions and Takeaways
The team behind the adaptation of PUBG for Stadia was able to conclude several new findings from their experience:
- Stadia as a platform is indeed revolutionary. No downloads required, no loading screens, instant boot-up times, accessible on multiple devices including mobile phones and TVs means that players can enjoy unprecedented access to games no matter their location.
- Aside from a decent network connection, not much else is required to run Stadia optimally. This also has the benefit of reducing latency by a large amount; on a good network connection, the team can hardly feel the effects of lag on PUBG, with the game running smoothly on Chrome.
- One of Stadia’s underrated advantages is the elimination of virtually all cheats and hacks, due to the fact that the game is run entirely offsite, with none of the files stored locally and susceptible to manipulation.
- Provided that a good network connection is available, and live environment is accessible, developers may have an easier time making games for Stadia, as it is possible to review the build remotely at any time, on a wide range of supported devices.
- Existing middleware and tools compatible with Stadia are noticeably fewer compared to other contemporary platforms (at the time of development), which may be a possible hindrance for developers wishing to make games for the platform.
- Remote connections to dev kits may likely be the norm in future for developers without direct access to one, and is already a reality in Virtuos today.
- Clients are also able to review builds for Stadia games remotely at their location of choice, without the need to use physical dev kits. The hassle of delivering hardware is virtually eliminated in this case, granting an understated advantage over other platforms (especially when factoring in global logistic issues due to the COVID-19 pandemic).
With the completion of this adaptation, Virtuos has gained significant experience in terms of game development for Google Stadia, and is now already working on several new adaptations to bring more games to the platform, giving players access to the ‘Click and Play’ experience everywhere.
- For more News about Virtuos, please visit: www.virtuosgames.com/en/news
- For business enquiries, please contact: firstname.lastname@example.org
Founded in 2004, Virtuos Holdings Pte. Ltd. is a leading videogame content production company with operations in Singapore, China, Vietnam, Canada, France, Japan, Ireland and the United States. With 1,600 full-time professionals, Virtuos specializes in game development and 3D art production for AAA consoles, PC and mobile titles, enabling its customers to generate additional revenue and achieve operational efficiency. For over a decade, Virtuos has successfully delivered high quality content for more than 1,300 projects and its customers include 18 of the top 20 digital entertainment companies worldwide. For more information, please visit: www.virtuosgames.com
Sparx* is one of the top studios in Asia, providing large-scale production services, creating a superb range of solutions for highest quality 3D Art, Visual effects (VFX) & Animation. Acquired by Virtuos – one of the world's largest digital content providers – in 2011, Sparx* has more than 350 professional artists working on all of the latest tools, engines & platforms. For more information, please visit www.sparx.com