Doctor Strange's portals were 'particularly challenging' to add into Marvel Rivals, as they created 'unprecedented performance demand' for Unreal Engine 5

Doctor Strange in Marvel Rivals
(Image credit: NetEase)

I never cease to be amazed by portals in video games. Even though the tech is nearly two decades old (and older still, if you include the use of portal rendering for hidden environment transitions in Thief and other early 3D games), Portal's seamless, real-time transitions through holes in space still feel like magic to me, and I love seeing it appear in other games too. One of the better uses of portals lately can be found in Marvel Rivals, where if you're playing as Doctor Strange, you can conjure portals in thin air and drop your entire team of superheroes on the heads of your foes.

It's a fantastic effect which, as explained by Rivals' technical lead designer Ruan Weikang, was extremely difficult to pull off. Weikang recently spoke to Epic Games about how NetEase used Unreal Engine 5 to recreate an Avengers movie's worth of superheroes, and he referenced the good doctor's space-folding abilities as one of the trickiest powers to replicate.

In the interview, Weikang starts by providing a broad overview of why Doctor Strange's portals "proved particularly challenging" to implement. "Creating portals that enable real-time spatial connections and bi-directional combat interactions not only presented complex gameplay implementation challenges, but also introduced unprecedented performance demands when combined with advanced graphics features".

The details of the technologies involved in Strange's portal conjuring come later in the chat. Weikang states that the portals were initially built using Unreal Engine 5's scene capture system, which essentially lets designers place a virtual camera in the world that captures live footage of a scene, deployable as a texture in in-game materials. However, Weikang says this approach "encountered significant performance limitations in complex combat scenarios", due to "substantial CPU wait states", Moreover, the fact that each portal essentially re-rendered the entire scene "creat[ed] a GPU overhead."

Instead, Weikang and the Rivals' team opted for a "modified ViewPort split-screen implementation", which folded portal rendering "directly into the main view pipeline". The reasons this helps are complicated, but they essentially ensure portal rendering happens much earlier in the scene-rendering process. This makes the portals less taxing on performance for several reasons, such as "minimising pixel overdraw" and "enhancing GPU efficiency".

There's one other interesting trick at play in Doctor Strange's magical wormholes. For representing the transition of heroes and ability effects through portals, Rivals "generates appropriate model and effect duplicates" while "managing proper occlusion for portal intersections". This is a fancy way of saying that anything passing through the portal gets a double spawned on the far side, while the original is removed in such a way as the transition appears seamless.

The end result, Weikang says, "successfully captures the essence of Doctor Strange's iconic abilities while adding meaningful tactical depth to gameplay, ultimately justifying the technical investment". It's a pretty wild amount of work to recreate one ability of one character, which gives you some idea why hero shooters, including the unfortunate Concord, are so astonishingly expensive to make.

While we were highly sceptical of Marvel Rivals when we first played it in closed beta, it turned out to be a pretty entertaining slice of superpowered multiplayer shenanigans, (although its progression system still sucks). Elie ultimately afforded it a score of 73 in her review, praising its colourful combat and highly destructible maps, but pointing out that its massive roster of heroes is as much a curse as it is a blessing. "Balancing a roster of heroes is arguably one of the hardest things a live service hero shooter has to do, and Marvel Rivals has made things unnecessarily difficult for itself by starting off with so many instead of drip-feeding players."

Marvel Rivals tier listMarvel Rivals ranksMarvel Rivals unitsMarvel Rivals codesMarvel Rivals review

Marvel Rivals tier list: Best characters for each role
Marvel Rivals ranks: How to climb in competitive
Marvel Rivals units: How to earn the currency
Marvel Rivals codes: Grab free gear and more
Marvel Rivals review: Hero shooter report

TOPICS
Contributor
Read more
Doctor Strange Close up
Doctor Strange mains are using portals to trick entire Marvel Rivals teams into jumping off a cliff
Marvel Rivals promo image - Captain America fighting the Winter Soldier
Marvel Rivals' destructible environment was apparently the 'first major technical challenge' the devs had to overcome
marvel rivals
Marvel Rivals devs conducted 'exhaustive research' to come up with the game's roster of heroes and abilities so it could live up to 'exceptionally high player expectations'
Marvel Rivals tier list - Black Panther
Marvel Rivals' FPS bug puts players with potato PCs at a disadvantage, and that's not the only optimisation issue happening right now
Hawkeye closeup
Marvel Rivals review
Squirrel Girl in Marvel Rivals pulls back on her slingshot to destroy some fool with an acorn.
Marvel Rivals is blissful chaos, which makes me worry that—like Overwatch—it'll have all the fun drained out of it once the balancing wars begin
Latest in Third Person Shooter
Marvel Rivals crosshairs - Star-Lord flying up towards the camera with his guns at the ready.
Best Marvel Rivals crosshairs and reticle codes
Mister Fantastic fridge mode
Marvel Rivals announces a new limited-time game mode, Clone Rumble, and manages to pull off a comic caper that players only thought was possible in theory
Jeff, from Marvel Rivals, poses merrily with his cute little winter onesie on.
Jeff the Land Shark's creator tells whiny Marvel Rivals players who can't deal with her hero to buck up: 'Sounds like a skill issue to me, if my boy is beating your ass every night'
Best Free Steam Games - Marvel Rivals - Black Widow aims down a sniper scope.
'The market is large enough to accommodate both games': NetEase is confident it can make space for Marvel Rivals and Overwatch 2
Moon Knight action shot
Marvel Rivals is considering 'crossover events and promotions with other media' but all players want is more comicbook and movie skins
blade marvel rivals
Marvel Rivals fans think NetEase is teasing the Hellfire Gala and Emma Frost in a small excerpt from its newest gallery card
Latest in News
Pixel-art portraits of Astarion and Shadowheart against a seasonal backdrop of Stardew Valley
The Baldur's Gate 3 mod for Stardew Valley is out, so here's another opportunity to romance Astarion
Doom: The Dark Ages art
'I think only the shotguns are the same,' says Doom: The Dark Ages director, otherwise the guns are brand-new or significantly transformed
Fortnite jacked Peter Griffin
Parents are suing Epic over Fortnite item shop 'FOMO' timers they say are inaccurate and manipulative
zoomed in concept art of the Agadon Hunter, a new enemy appearing in Doom: The Dark Ages.
Doom: The Dark Ages already sneakily revealed its 'new Marauder,' and the devs hope he'll be just as challenging, but a little less frustrating
Doom: The Dark Ages art
The sickest gun from Doom: The Dark Ages' trailer is called the 'Skullcrusher' and does such horrible things to demons, the game's lead dev boasts id has 'the best gore in the industry'
Monster Hunter Wilds palico
The next Monster Hunter Wilds update is set to launch on March 10 and will ensure that when you chop off monster parts, the right monster parts get chopped off