Oculus Quest Developer Shares Tricks To Optimize Rift And Vive Ports

Oculus Quest Developer Shares Tricks To Optimize Rift And Vive Ports

Within the days main as much as Oculus Quest’s launch, the corporate’s head of third-party content material informed VentureBeat that porting higher-end PC titles to the standalone platform was extra about artwork asset formatting than code optimization. Now early third-party Quest developer Immerse is revealing precisely how artwork reformatting introduced a PC-caliber enterprise coaching app to the Quest in solely 5 weeks.

As Immerse head of product Justin Parry explains, the corporate has been working with Quest growth kits since early 2019, and was tasked with porting DHL’s PC-tethered coaching app to the tetherless Quest. “As a result of enterprise of the shopper, the coaching is performed out in an enormous, shiny warehouse surroundings,” Parry says. “Our temporary was easy: Make it work on the Quest whereas sustaining the appear and feel of the expertise as a lot as potential.”

Whereas Quest’s room-scale (and warehouse-scale) inside-out monitoring capabilities can be excellent for an app like this, shedding a big, costly PC in favor of a mobile-class CPU and GPU might be a severe situation — regardless of Oculus’ suggestion that “the very same property” from a Rift app might be used on Quest with reformatting. A few of that Quest reformatting might be achieved immediately with normal Unity settings, however on the pointless price of constancy. So Parry says that overriding Unity’s settings and a number of other different tips are mandatory.

Unity’s normal shader high quality, for example, defaulted to “low” settings, killing the corporate’s regular maps. Parry recommends beginning with “medium” or “excessive” to be able to preview every part, then optimize property from there. Immerse additionally seen that a easy texture format change made crisp Rift textures look blurry on Quest, however utilizing a GPU-native format equivalent to RGBA 32-bit usually resolved the issue — and extra tweaks to particular person textures will help much more.

Quite than merely decreasing polygon counts to scale back Quest asset complexity, Parry says that the headset does higher with fewer objects. In different phrases, efficiency will be improved simply by making a field, a barrel, a ground, and a desk into one object that appears similar, however doesn’t must load 4 objects to get all the information. Whereas builders can’t simply flip each merchandise in a scene right into a single object, as that forestalls Quest from culling objects that aren’t presently being seen, creating clusters of associated gadgets could make a giant distinction.

Immerse additionally used texture atlases and UI sprite atlases to scale back loading instances and draw calls, saved sprite texture sizes at 512 pixels sq. or decrease, and reused textures as a lot as potential to preserve reminiscence. To maximise sprite visible high quality at close to distances, Parry suggests disabling mip-mapping for shut sprites, however strongly advises enabling it for all different textures, because it’s the closest factor to antialiasing that’s accessible. The textures for close to and much distances will seemingly require particular person optimizations, however the visuals will look higher in the long run.

Above: Even after pre-baking lighting for a scene, artifacts can stay within the mechanically up to date textures, so Photoshop can be utilized to scrub them up for the ultimate textures.

Picture Credit score: Immerse

Maybe the most important modifications have been within the lighting division, the place Immerse says dropping real-time lighting for every part besides “completely mandatory” conditions is vital, relying as an alternative on pre-baked lighting into textures, a course of that Unity can deal with. Fantastic-tuning the decision, padding, and dimension of lightmaps, in addition to adjusting every object’s “scale in lightmap” to put larger precedence on extremely seen gadgets and decrease precedence on modest ones, will result in the most effective automated outcomes, adopted by Photoshopping textures to get them precisely the place you need them.

The massive image takeaway from Immerse’s expertise is that Quest has simply sufficient energy to ship a compelling VR expertise when its restricted computing and reminiscence property aren’t being wasted — and each discount in variety of objects, textures, sprites, and lights appears to make an analogous distinction to the basic chopping out of main objects or discount of lifelike objects into boxy analogues. With the correct artwork optimizations, a warehouse employee in coaching will be capable of really stroll round a warehouse-sized house utilizing Quest with out wires quite than being consistently tethered to a PC, which is the final kind of expertise Oculus envisioned for the standalone .

This submit by Jeremy Horwitz initially appeared on VentureBeat.

Tagged with: developer, Oculus Quest, Optimize

.special-buttons > * text-align:left !vital; FbTwitterRedditExtra

The submit Oculus Quest Developer Shares Methods To Optimize Rift And Vive Ports appeared first on UploadVR.