• Hey, guest user. Hope you're enjoying NeoGAF! Have you considered registering for an account? Come join us and add your take to the daily discourse.

Alan Wake 2 on PlayStation 5 Pro – Behind The Scenes

Thick Thighs Save Lives

NeoGAF's Physical Games Advocate Extraordinaire

Alan Wake 2 is taking full advantage of Sony’s PlayStation 5 Pro to enhance the game experience further. Remedy’s Northlight engine team has spent a good amount of time updating the technology behind Alan Wake 2, with the main new feature for the Pro being the addition of ray tracing.

The Quality and Performance modes in Alan Wake 2 are upgraded on the PS5 Pro. They utilize Sony’s new “PlayStation® Spectral Super Resolution” aka PSSR upscaling method. To quote Sony’s marketing language, "PSSR is an AI-driven upscaling that uses a machine learning-based technology to provide super sharp image clarity by adding an extraordinary amount of detail."

Quality Mode  

The PS5 Pro Quality mode features ray tracing, which isn't available on the base PS5 version of the game.
  • 30fps with ray tracing
  • Ray traced reflections (opaque and transparent)
  • Output resolution 3840 x 2160 (4K)
  • Render resolution 2176 x 1224
Performance Mode 

The Performance Mode on the PS5 Pro features significantly higher output resolution and has more visual detail compared to the base PS5. The Pro Performance mode uses approximately the same image quality (render) settings as the base PS5’s Quality mode.

The overall image stability, fog, volumetric lighting, and shadow accuracy have been improved on the Pro.
  • 60fps
  • Using approximately the same render (image quality) settings as the base PS5 Quality mode.
  • Base PS5 Performance mode version runs at lower render (image quality) settings
  • Render resolution 1536 x 864
  • Output resolution 3840 x 2160 (4K)
  • Base PS5 version outputs 1440p.




Our approach for the Pro​

We shipped Alan Wake 2 on October 27th 2023. The PlayStation 5 and Series X versions offer players the choice between a Quality mode at 30fps and a Performance mode targeting 60fps. We wanted to retain and improve these modes when considering upgrading Alan Wake 2 for the Pro.

When considering potential options to improve the image quality, increasing the rendering resolution is among the easiest routes to go if you have enough GPU power.

We did multiple experiments, including upgrading the 60fps Performance mode output from 1440p to 4k and adding PSSR (Sony’s AI-based upscaling method), which positively impacted image crispness and stability under motion.

Increasing the internal rendering resolution consumes a lot of processing power, no matter how powerful your hardware is. However, in our experiments, even putting all the added power to increased rendering resolution provided a barely noticeable difference in the output image or its quality. Adding more pixels to gain visual quality is not straightforward with the new AI-based upscaling methods.

That being said, there still is a threshold on what resolution image you can feed to modern upscalers and expect good quality reconstruction results. Many different parameters affect the upscaling quality, ranging from the style of content to the choice of rendering algorithms that are used to produce the image. Every engine and artistic direction works in different ways.

When it comes to Alan Wake 2, it seemed a better idea to improve the signal that we feed into the denoising network rather than trying just to add more data. This led us to improve the rendering quality settings of the Pro Performance mode which is closer to what the base PlayStation 5 version’s Quality mode uses.

These upgraded settings provide the Pro version of Alan Wake 2 with a fast response rate combined with a sharper and better-quality image than was previously possible.

Alan Wake 2 is visually incredibly detailed and rich, which are qualities that make it a tough fit for ray tracing, especially compared to our previous game, Control. Still, we do like a challenge here at Remedy. If you have a high-end PC with the right graphics card, ray tracing on Alan Wake 2 looks great, and we are happy that we can now bring ray tracing to the Pro thanks to its upgraded hardware.

With ray traced effects, the detail of the world in Alan Wake 2 can be observed even more accurately than before on the console, and the image is more stable in complex lighting situations.

Introduction to ray tracing​

We’ve always wanted to bring cutting-edge visuals to our games, but everything is always a balancing act between the frame rate, visual quality, technical and hardware constraints, development resources and what we wish to artistically achieve with the game.

Alan Wake 2 did not feature ray tracing on PlayStation 5, but with the Pro’s improved ray tracing features and additional power, we could bring ray tracing to Alan Wake 2’s Quality Mode on the Pro enabling ray traced reflections on opaque and transparent surfaces.

Visually, Alan Wake 2 contains beautifully crafted scenes and lighting setups that can benefit from ray tracing. Ray traced reflections allow dynamic indirect lighting to be brought in from the surrounding scene. They are not limited to using information only from the main camera view shading or coarse and static signed distance fields like our screen space techniques.

However, ray tracing comes with a cost. Each ray must be traced, and its hit evaluated and shaded. Due to the nature of ray tracing, multiple rays must be traced to reach noise-free images. Unfortunately, tracing and shading multiple rays per pixel is still generally too expensive. We must be able to work with noisy images provided by low sample counts, which means we must remove the noise by de-noising. When trying to achieve real-time performance, game engines like our very own Northlight usually resort to using small sample counts and denoising.

In a game like Alan Wake 2, its complex light-material interactions and rich environments can make tracing, shading, and denoising even a single ray tracing effect too expensive to justify the cost depending on the hardware. Geometrically Alan Wake 2 is a very dense game. The usage of a GPU-driven rendering pipeline and its fine-grained culling with the skinning ran on GPU made it possible to create densely populated forest scenes with layers and layers of foliage and trees encountered during Saga’s gameplay segments taking place in the lush environments of the Pacific North-West.

While main camera view shading can effectively cull most of the unnecessary work, uncompromised ray tracing must build an acceleration structure using a large portion of the scene’s objects since ray tracing reaches beyond the limits of the screen-space information. The Pro’s improved hardware made it possible to build the acceleration structure for the most densely populated scenes, which was the major limitation before.

Below, you can see a selection of screenshots that display how ray tracing can transform the image, bringing information from the scene that is not only limited to the main camera view.

671632921cc3cd2f2fdcd809_6708c83e75c883aef9fa1f21_6707a1c7669d17565ef0f62a_670799828ad658f0d457e361_floodedStudioBase_watermark.png

PlayStation 5 with no ray tracing
671632921cc3cd2f2fdcd814_6708c83f75c883aef9fa1f5a_6707a1c8669d17565ef0f669_670799c84f8f38707cc603e2_floodedStudioTrinity_watermark.png

PlayStation 5 Pro with ray tracing
You can download uncompressed screenshots from the article here.

How we got it done​

Since we had shipped ray tracing on PlayStation 5 and Xbox Series X before with Control Ultimate Edition back in February 2021 and shipped various ray tracing effects for PC with Alan Wake 2, the work came mostly down to selecting desired effects and making PlayStation 5 Pro-specific optimizations.

All the key pieces required by ray tracing such as acceleration structure building pipeline, bindless material access for ray hits that are not in the main camera view and shading model for them were already in place. We chose to include ray tracing in the Quality mode. The decision to include ray traced reflections for opaque and transparent came down to balancing quality and performance, keeping the 30fps frame-rate target in mind.

Let us dive into the technical details of our ray tracing pipeline. Right after the scene has undergone an update and skinning is complete, the acceleration structure, i.e., the bounding volume hierarchy (bvh), is built asynchronously on the GPU. This allows us to overlap non-dependent work that is not bottlenecked by the same limiters as the BVH building. To hit our performance target for bvh building and ray tracing intersection in the shaders, we had to limit the amount objects in the bvh. We keep track of object distances to the camera and only include them if they are within predefined distance with exception that landscape heightfield is always fully included. Including full heightfield provides dark backdrop for long rays that miss all other objects in the bvh.

671632921cc3cd2f2fdcd80c_6708c83e75c883aef9fa1f25_6707a1c7669d17565ef0f633_67079a4ef63b6c8031b0dea8_HeightfieldBackdrop_watermark.png

Screenshot demonstrating how heightfield provides plausible backdrop when there are objects missing from the bvh.
We also use the cascaded skinned mesh bvh updates on PlayStation 5 Pro. This means that skinned meshes are not updated or rebuilt every frame in the bvh, but rather use cascaded build frame intervals based on distance to the camera. Each mesh has a uniform frame random offset applied to even out the work between frames. On the Pro, special meshes such as characters are built or updated every frame, while other skinned meshes do so based on the cascades starting at half the framerate.

After the bvh has been built, all potentially visible lights undergo culling and are gathered from the scene using expanded volume that is conservative to the potential ray tracing hits far away from the main camera view. Data from these lights is sent to the GPU and can be accessed by the ray tracing shaders.

Ray traced reflections use a deferred ray tracing pass setup, where half-resolution reflection rays are traced in checkerboarded fashion from the main camera surface. Tracing rays in half-resolution helps to gain performance but means that during denoising we must fill in the missing reflection information. Deferred approach is used to let ray intersections run free of register pressure caused by heavy reflection shading. Northlight has a separate main surface defined by opaque and transparent objects. This naturally splits reflections to opaque and transparent based on the surface they are cast from. On the Pro, we also run all ray tracing effects in asynchronously to other effects, since we found that overlapping them with independent work yielded performance gain, even though theoretically the gains should be small at the point they are run during a frame.

Deferred ray tracing starts with a pass, run in half-resolution, that determines reflection directions and does ray-scene intersections producing a geometry buffer that contains relevant data from the secondary surface. This geometry buffer allows material and ray traced hit point data to be accessed later during shading. Single ray direction is chosen based on the surface’s attributes and are selected proportional to bidirectional reflectance distribution function(brdf) used by our shading model. Heavily alpha tested locations can be heavy to trace, so to balance quality versus performance, we resorted to stochastically skipping alpha testing on the reflections rays based on the roughness of the main camera view surface. Also, to gain a little bit of extra tracing performance, the maximum distances that the rays can reach are modulated based on the surface roughness. The rays from the roughest surface, which are usually short and produce noisy reflections, are culled, and proceed use our global illumination evaluation as a fallback.

After the reflection ray pass, a pass is dispatched for sunlight shadow rays. This pass is required, since unlike shadow maps used by small local lights that only span small areas of the scene, the sunlight is visible everywhere. If the secondary surface found by the reflection ray is not inside the area of the scene handled by sun’s shadow map, the sunlight leaks. Reflection rays from the first pass, that find a valid hit, trace this sun light shadow ray. Sun shadow rays are packed using atomics and executed tightly writing shadow data augmenting the geometry buffer.

After tracing the reflection rays and shadow rays, a separate shading pass is run that uses the produced geometry buffer to evaluate reflection shading at the secondary surface. Reflection shading is expensive, since it must pull in and evaluate divergent material data based on the object that was hit. Material and brdf evaluation closely match the one done for the main view. During shading pass, we add in all influencing light contributions from small local lights and the sun. Further bounces are approximated by our global illumination evaluation and environment cube map. We also blend in fog based on how far the ray traveled through our fog volumes. At this point, evaluated reflection is complete but noisy. We must denoise the reflection by blurring and using results over multiple frames.

671632931cc3cd2f2fdcd822_6708c83f75c883aef9fa1f90_6707a1c8669d17565ef0f666_6707996a5f962fc4887d82bd_Noisy_watermark.png

Screenshot of reflections without any denoising.
After shading, both opaque and transparent reflections undergo a set of denoising passes, that remove the unwanted noise from the image produced by half resolution rays. Denoising performs series of blurs where the blur kernel footprint is widened each pass while trying to preserve material detail as well as possible. Denoising usually also resorts to using data over multiple frames averaging the result. Temporal Anti-Aliasing employed in modern games also helps in denoising, since by nature it reuses data over multiple frames.

For PlayStation 5 Pro specifically, we added a new transparent surface reflection denoiser that works well with the PSSR. After denoising, we add our reflections to the final image.

671632931cc3cd2f2fdcd83f_6708c83e75c883aef9fa1f29_6707a1c7669d17565ef0f630_6707a0fa2194d9969d1821f2_Denoised_watermark.png

Screenshot of how reflections look after denoising and anti-aliasing with PSSR
We briefly summarized how the PlayStation 5 Pro ray tracing implementation turned out and which measures we took to balance quality versus performance. To end this rather wordy blog post, please enjoy some screen shots from Alan Wake 2 running on PlayStation 5 Pro.

671632921cc3cd2f2fdcd7fd_6708c83e75c883aef9fa1f2d_6707a1c8669d17565ef0f657_670799bf20db22d88542b1ea_WaterySaunaTrinity_watermark.png

671632921cc3cd2f2fdcd811_6708c83f75c883aef9fa1f93_6707a1c8669d17565ef0f663_6707a1a6669d17565ef0c7c1_WateryFinnhallTrinity_watermark.png

671632931cc3cd2f2fdcd827_6707ab0b7950d46c8d82c1d7_6707ab05a05cdad2b998213e_Oh%252520Deer%252520Diner%252520table%252520PS5%252520Pro_watermark.png
 
Last edited:

Luipadre

Member
How is the performance mode image quality looks on big screen or monitor? It looks great on phone but you know how it is... The RT looks fucking great thats for sure, but i love how smoth the performance mode looks in those clips
 

Luck

Member
Too much you want. Here is lower resolution,, than on PS5 pro. Even XTX and 4070 can't give 60 fps
I don't care how unoptimized this engine is on other platforms, when we already have games on the base PS5 with RT of even nicer quality and not only in 30 fps but some with 60 fps too. So this game on the PS5 Pro should be able to play with at least RT reflections at 60 fps easy...
 

SolidQ

Member
So this game on the PS5 Pro should be able to play with at least RT reflections at 60 fps easy...
That REMEDY, they always doing overkill system requirements, despite just ok graphic. Even Quantum break not always give 60 fps on 4070
 
Last edited:
I mean for other games, not just Alan Wake. I wish there was a way to turn off RTX in everything.

For example, Spider-man 1 has this option but not Spider-man 2
Why would you want to remove raytacing when it doesnt impact performance in Spiderman 2?

https://www.eurogamer.net/ray-traci...-spider-man-2s-graphical-performance-settings
"For this game we're really able to deliver [ray tracing] as a baseline performance mode," Fitzgerald said. "There's no mode of this game that has the ray tracing turned off, no need for it. We've really figured out how to deliver what we feel like is the right Spider-Man visuals and we want to make sure every player is seeing that."
 

MaKTaiL

Member
I don't care how unoptimized this engine is on other platforms, when we already have games on the base PS5 with RT of even nicer quality and not only in 30 fps but some with 60 fps too. So this game on the PS5 Pro should be able to play with at least RT reflections at 60 fps easy...
No Way Kg GIF by SHOWTIME Sports
 

SlimySnake

Flashless at the Golden Globes
F Feel Like I'm On 42 Here you go. This is what a great studio that actually bothered pushing graphics can do with a pro. What a fantastic breakdown.

Quality mode settings in the 60 fps mode with way better IQ than base PS5's quality mode thanks to PSSR.
Quality mode itself upgraded to use PSSR from FSR, albeit at a lower resolution due to just how effective PSSR can be even at 1296p. The extra GPU power was then used to add RT reflections among other upgrades.

If 4k PSSR Balanced is better than 4k FSR Quality then that bodes really well for Avatar and Star Wars outlaws which use 4k FSR quality with RT on already. They can reduce the upscaling quality to 4k PSSR balanced and get even more GPU than the 45% extra horsepower. That could go towards either a 40 fps mode or extra RT settings.

SH2 should benefit from this as well.

Question. Is it really difficult to achieve 4k/60 fps with RT? Does it really need a $1000 dollar card to achieve it?
Depends on the game. Depends on the engine. RT relies heavily upon the CPU and if your CPU isnt modern or strong enough, your $1000 card wont be able to run it. Avatar should run at 4k 60 fps with RT on using PSSR 4k performance upscaling.
 
Last edited:

SlimySnake

Flashless at the Golden Globes
Quality mode:
  • Render resolution 2176 x 1224

Performance mode:
  • Render resolution 1536 x 864


Looks like DF were accurate for the figures from the 10 second clip.
they were right about the pixel counts, but clearly missed that its now using higher quality settings preset. it also now upscales to 4k instead of 1440p which will be a huge boost to image quality.

Performance Mode 

The Performance Mode on the PS5 Pro features significantly higher output resolution and has more visual detail compared to the base PS5. The Pro Performance mode uses approximately the same image quality (render) settings as the base PS5’s Quality mode.

The overall image stability, fog, volumetric lighting, and shadow accuracy have been improved on the Pro.

  • 60fps
  • Using approximately the same render (image quality) settings as the base PS5 Quality mode.
  • Base PS5 Performance mode version runs at lower render (image quality) settings
  • Render resolution 1536 x 864
  • Output resolution 3840 x 2160 (4K)
  • Base PS5 version outputs 1440p.
 
Top Bottom