How does a team’s backup quarterback stay mentally game-ready when the starter needs nearly all the practice reps himself?

Virtual reality, of course.

And the 49ers became the second NFL team to sign on with Stanford-based STIVR Labs, to see whether Blaine Gabbert, who appeared in just one game as Colin Kaepernick’s backup a year ago, can be aided by virtual reps.

The company was founded by former Stanford kicker Derek Belch, who came up with the technology as part of his thesis project. He enlisted former Cardinal quarterback Trent Edwards — and even coach David Shaw — to be among his early investors and team members to help bring the device to market.

Edwards has been making the rounds with Belch, and their client list thus far is impressive: Auburn, Vanderbilt, Clemson and Arkansas.

Now the 49ers join the Cowboys as NFL clientele. “As all teams do, we are constantly searching for methods to better prepare us for game day. We are confident that STRIVR Labs can provide an advantage,” 49ers GM Trent Baalke said in a statement.