• Home
  • Latest
  • Fortune 500
  • Finance
  • Tech
  • Leadership
  • Lifestyle
  • Rankings
  • Multimedia

Trendingnow

1

MacKenzie Scott alone accounted for one-third of America's $19.2 billion in megagifts last year

2

Philanthropy leader at Warren Buffett and Bill Gates’ Giving Pledge says children of billionaires are pushing them to give their wealth away faster

3

Ex-Google engineer says Larry Page, Sergey Brin and Sundar Pichai share the same trait—it's the lesson he swears by as a $7.2 billion AI CEO

1

MacKenzie Scott alone accounted for one-third of America's $19.2 billion in megagifts last year

2

Philanthropy leader at Warren Buffett and Bill Gates’ Giving Pledge says children of billionaires are pushing them to give their wealth away faster

3

Ex-Google engineer says Larry Page, Sergey Brin and Sundar Pichai share the same trait—it's the lesson he swears by as a $7.2 billion AI CEO
TechFortune 500

Why Facebook’s Oculus Team Had to Rebuild Some of Its Virtual Reality Software

By
Jonathan Vanian
Jonathan Vanian
Down Arrow Button Icon
By
Jonathan Vanian
Jonathan Vanian
Down Arrow Button Icon
August 31, 2016, 9:19 PM ET
Photograph by Florian Gaertner Photothek via Getty Images
Add Fortune on Google for similar content.

What’s the point in strapping a virtual reality headset to your face if you can’t figure out how to use it?

Virtual reality’s rise means that average people will be able to visit tropical beaches and shoot aliens in space—all without leaving their homes. But before doing so, they need a starting point, or interface, that lets them easily interact with virtual reality apps.

The interface must be easy to use, quick to respond, and similar to the familiar on-screen buttons, links, and menus that people use to navigate on their regular computers. That’s why a new startup called Envelop, partially funded by Alphabet’s (GOOG) venture capital arm GV, recently debuted a new virtual reality interface that mimics Microsoft (MSFT) Windows.

But even for some of the biggest companies selling virtual reality headsets like Facebook (FB) and its Oculus Rift, building these new interfaces is difficult. Speaking at Facebook’s annual engineering conference on Wednesday in San Jose, Oculus software engineer Khoi Nguyen described the challenges of making a new technology user-friendly.

The original Oculus home screen, which he said was slow and cobbled together, was rebuilt from scratch to ensure everything would run as smoothly as possible. The interface’s design didn’t necessary put off users, Nguyen explained, but rather it was the software plumbing that needed a serious overhaul.

Get Data Sheet, Fortune’s technology newsletter.

Nguyen, who had a video game background, wasn’t well-versed in creating big engineering infrastructures like those used by Facebook or Google that are able (for the most part) to accommodate millions of users simultaneously. He conceded that he was also unfamiliar with some of the cutting edge development tools and data processing engines that big web companies typically use.

The first version of the Oculus Home, Oculus’s interface, relied on several software services that his team of two other coders could not update because they were discontinued over time, he explained. Updating some of the older software services would inevitably end up breaking another.

These bugs didn’t crash the interface completely, but it did hurt its performance.

For example, the simple task of loading Oculus Home on a headset took much longer than it should because of the conflicting and outdated software. To mask the delay, Nguyen’s team devised a trick to divert people’s attention from frozen screens that needed time to load.

When the headset was turned on, the home screen would appear on the user’s display like normal. But then it would briefly fade to black before fading back in view. Showing something happening on-screen helped to mask the delay.

“It didn’t feel right,” Nguyen said referring to masking the delay.

Because his team built the interface in a disorganized way, they ended up with sloppy code, he said.

“Quickly the code became spaghetti,” Nguyen said. “It wasn’t delicious at the end of the day.”

It was also difficult for his team to update and improve the interface because much of the excess code was copy and pasted, another frowned upon method of software development.

Still, the interface worked, and people could still download and play virtual reality apps. It wasn’t until after Facebook acquired Oculus in 2014 for $2 billion that Nguyen and his team could re-engineer Home with the resources of a giant corporation that has expertise in cutting-edge software development and data processing.

For more about virtual reality, watch:

His team used two of Facebook’s open source, or free software tools, React and Flux for building user interfaces as Home’s new underlying technology. They also built bare bones software components that they could reuse more efficiently than copying and pasting code. These custom software blocks allowed the team to add new features to the Home screen, like text boxes that appear on users’ screen while browsing virtual reality apps, in a more organized way. This resulted in less messy code that could make the interface seem slow.

In addition, Nguyen and his team built a more efficient way to store data that also keeps track of all the changes when users scrolls through apps on the Home screen or decide to play something. Essentially, the virtual reality interface has been mapped out so that his team can better understand how one software change impacts another.

Before, it was difficult to keep track of all those changes, leading to problems like the software draining too many computer system resources, thus causing annoying delays or software bugs.

It took seven months to rebuild Oculus Home, which was ready on Nguyen’s birthday, March 16, 2016. The rewritten software makes problems easier to diagnose and fix, he said, and he’s “confident I can jump into any file and know what is going on.”

About the Author
By Jonathan Vanian
LinkedIn iconTwitter icon

Jonathan Vanian is a former Fortune reporter. He covered business technology, cybersecurity, artificial intelligence, data privacy, and other topics.

See full bioRight Arrow Button Icon
Add Fortune on Google for similar content.

Latest in Tech

Finance
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam
By Fortune Editors
October 20, 2025
Finance
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam
By Fortune Editors
October 20, 2025
Finance
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam
By Fortune Editors
October 20, 2025
Finance
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam
By Fortune Editors
October 20, 2025
Finance
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam
By Fortune Editors
October 20, 2025
Finance
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam
By Fortune Editors
October 20, 2025

Most Popular

Finance
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam
By Fortune Editors
October 20, 2025
Finance
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam
By Fortune Editors
October 20, 2025
Finance
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam
By Fortune Editors
October 20, 2025
Finance
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam
By Fortune Editors
October 20, 2025
Finance
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam
By Fortune Editors
October 20, 2025
Finance
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam
By Fortune Editors
October 20, 2025
Fortune Secondary Logo
Rankings
  • 100 Best Companies
  • Fortune 500
  • Global 500
  • Fortune 500 Europe
  • Most Powerful Women
  • World's Most Admired Companies
  • See All Rankings
  • Lists Calendar
Sections
  • Finance
  • Fortune Crypto
  • Features
  • Leadership
  • Health
  • Commentary
  • Success
  • Retail
  • Mpw
  • Tech
  • Lifestyle
  • CEO Initiative
  • Asia
  • Politics
  • Conferences
  • Europe
  • Newsletters
  • Personal Finance
  • Environment
  • Magazine
  • Education
Customer Support
  • Frequently Asked Questions
  • Customer Service Portal
  • Privacy Policy
  • Terms Of Use
  • Single Issues For Purchase
  • International Print
Commercial Services
  • Advertising
  • Fortune Brand Studio
  • Fortune Analytics
  • Fortune Conferences
  • Business Development
  • Group Subscriptions
About Us
  • About Us
  • Press Center
  • Work At Fortune
  • Terms And Conditions
  • Site Map
  • About Us
  • Press Center
  • Work At Fortune
  • Terms And Conditions
  • Site Map
  • Facebook icon
  • Twitter icon
  • LinkedIn icon
  • Instagram icon
  • Pinterest icon

Latest in Tech

Strategy cofounder Michael Saylor sits during a conference and looks out into the crowd.
CryptoBitcoin
Strategy may sell up to $1.25 billion in Bitcoin to calm investor jitters
By Camila Grigera NaónJune 29, 2026
1 hour ago
Hyperscalers could end up resembling airlines—plagued by small margins, intense competition, and high expenses, AI skeptic warns 
AIData centers
Hyperscalers could end up resembling airlines—plagued by small margins, intense competition, and high expenses, AI skeptic warns 
By Jason MaJune 29, 2026
1 hour ago
aus
LawSocial Media
Australia’s under-16 social media ban is failing, so the government is (literally) doubling down
By Rod McGuirk and The Associated PressJune 29, 2026
3 hours ago
swisher
Politicspodcasts
‘Podcasts are the NBA’: Scott Galloway on Kara Swisher’s big success — ‘there’s a small amount of people making a lot of money’
By Steven Sloan and The Associated PressJune 29, 2026
3 hours ago
comcast
Big TechMarkets
Comcast stock jumps 24% for agreeing to break up with itself
By Michelle Chapman and The Associated PressJune 29, 2026
3 hours ago
Internet technology and people's networks use AI to help with work, AI Learning or artificial intelligence in business and modern technology, AI technology in everyday life.
AICFO Daily
AI spending boom accelerates as Big Tech pours trillions into infrastructure
By Sheryl EstradaJune 29, 2026
5 hours ago

Most Popular

MacKenzie Scott alone accounted for one-third of America's $19.2 billion in megagifts last year
Success
MacKenzie Scott alone accounted for one-third of America's $19.2 billion in megagifts last year
By Sydney LakeJune 25, 2026
4 days ago
Philanthropy leader at Warren Buffett and Bill Gates’ Giving Pledge says children of billionaires are pushing them to give their wealth away faster
Success
Philanthropy leader at Warren Buffett and Bill Gates’ Giving Pledge says children of billionaires are pushing them to give their wealth away faster
By Preston ForeJune 27, 2026
2 days ago
Ex-Google engineer says Larry Page, Sergey Brin and Sundar Pichai share the same trait—it's the lesson he swears by as a $7.2 billion AI CEO
Success
Ex-Google engineer says Larry Page, Sergey Brin and Sundar Pichai share the same trait—it's the lesson he swears by as a $7.2 billion AI CEO
By Orianna Rosa RoyleJune 28, 2026
1 day ago
Cristiano Ronaldo is soccer's first-ever billionaire: He went from begging for burgers outside McDonald's to landing a $400 million contract
Success
Cristiano Ronaldo is soccer's first-ever billionaire: He went from begging for burgers outside McDonald's to landing a $400 million contract
By Preston ForeJune 28, 2026
1 day ago
The retired college professor fighting a $313 trespassing ticket in Wisconsin thinks he's part of a national struggle
Environment
The retired college professor fighting a $313 trespassing ticket in Wisconsin thinks he's part of a national struggle
By Catherina GioinoJune 28, 2026
1 day ago
Iran is forcing the U.S. into an escalation trap as a 'shadow war' over the Strait of Hormuz heats up that could kill the tenuous ceasefire
Politics
Iran is forcing the U.S. into an escalation trap as a 'shadow war' over the Strait of Hormuz heats up that could kill the tenuous ceasefire
By Jason MaJune 28, 2026
23 hours ago

© 2026 Fortune Media IP Limited. All Rights Reserved. Use of this site constitutes acceptance of our Terms of Use and Privacy Policy | CA Notice at Collection and Privacy Notice | Do Not Sell/Share My Personal Information
FORTUNE is a trademark of Fortune Media IP Limited, registered in the U.S. and other countries. FORTUNE may receive compensation for some links to products and services on this website. Offers may be subject to change without notice.