Skip to content

Need for Speed 2016 - #277

Open
PetarBadzhakov wants to merge 4 commits into
Filoppi:mainfrom
PetarBadzhakov:need-for-speed-2016
Open

PetarBadzhakov wants to merge 4 commits into
Filoppi:mainfrom
PetarBadzhakov:need-for-speed-2016

Conversation

@PetarBadzhakov

Copy link
Copy Markdown
Contributor

Needs Anti-Aliasing set to TAA in the game's video settings.

  • Adds the mod. Luma's SR (DLSS, FSR 4, XeSS or FSR 3, at native resolution) replaces the game's TAA resolve. That compute pass already gets what SR needs (jittered linear HDR color, depth, motion vectors) and runs before motion blur and tonemapping. SR writes the game's own output and history, so the rest of the frame is unchanged, and any frame SR can't take falls back to the game's TAA. Built on DristoforColumb's Mass Effect Andromeda mod (same engine, Frostbite); FSR 4 runs on DX11 through izueh's interop.
  • Fixes the jitter. The game's 1024-point jitter sequence clumps together, which left FSR 4 soft. As in Mass Effect: Andromeda, the engine re-reads its settings every frame, so while SR runs the mod sets the jitter count to SR's phase count and writes Luma's Halton sequence into the engine's table. The exe is packed, so the settings and the table are found at runtime. If any of them isn't found, the game keeps its own jitter.
  • Adds a Resolution Scale setting. The game's hidden supersampling scale (1 to 2, until now only a launch option) is a saved setting below Super Resolution, and it applies live.

Only the project and its Luma.sln entry are added. Tested on an RX 6800 XT at 1440p with FSR 4, FSR 3 and XeSS in Windows 11 and CachyOS; DLSS is untested.

PetarBadzhakov and others added 3 commits November 15, 2026 17:04
Needs Anti-Aliasing set to TAA in the game's video settings.

- SR replaces the TAA resolve (CS 0x060ACA92), whose inputs are already jittered linear HDR colour, depth and motion vectors, before motion blur and tonemapping. It writes the game's own output and history.
- The depth of field resolve (0x1ABE3340) also blends a layer SR can't make, so the game's shader runs first and SR overwrites the colour.
- The camera (jitter, near plane, FOV) is copied when it's bound for a draw. By the resolve it was often stale or another view's, and missing in the grill cam.
- Frames SR can't take fall back to the game's TAA, and SR's history restarts after them: core doesn't, and the SR backends keep it while deselected.
- Built on DristoforColumb's Mass Effect Andromeda mod (same engine): the Frostbite defines, the camera from mapped constant buffers, the MV scale, the history reset, 16x AF and the mip bias. FSR 4 on DX11 uses izueh's interop in core.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…mpy one

Needs Anti-Aliasing set to TAA in the game's video settings.

- Frostbite's 1024-point jitter table clusters: 8 frames hit 6 of 16 sub-pixel cells (Halton hits 8), which left FSR 4 soft.
- The fix is from DristoforColumb's Mass Effect Andromeda mod: the engine re-reads its WorldRender settings every frame, so while SR runs the mod sets the jitter count to SR's phase count and writes Luma's Halton into the engine's table. Turning SR off restores the game's values.
- MEA's offsets and code patterns don't fit NFS (another settings layout, a packed NFS16.exe), so it's all found once at runtime: the field offsets from type info, the settings lookup from 5 agreeing call sites (called under SEH), the table by its contents.
- Replaces the -WorldRender.TemporalAAJitter* launch options.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Needs Anti-Aliasing set to TAA in the game's video settings.

- -Render.ResolutionScale (1 to 2, supersampling) was a launch option only.
- Now it's a saved slider below Super Resolution. It sits in the engine's "Render" settings, which the Mass Effect Andromeda mod also writes, found through the jitter's lookup. It applies live, and SR follows the new size.
- The game's own value (from a launch option, say) stays until the slider is moved.
- The mip bias follows the scale, reaching 0 at 2x.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PetarBadzhakov added a commit to PetarBadzhakov/Luma-Framework that referenced this pull request Nov 15, 2026
Needs Anti-Aliasing set to TAA in the game's video settings.

- The mod from Filoppi#277: SR (DLSS, FSR 4, XeSS, FSR 3) in place of the TAA resolve, SR's Halton in the engine's jitter table, and the game's hidden resolution scale as a setting. Built on DristoforColumb's Mass Effect Andromeda mod; FSR 4 on DX11 uses izueh's interop.
- The camera capture moves from ReShade's events to core's hooks: PostMap, OnResourceDestroyed and PreVSSetConstantBuffers, which also sees VSSetConstantBuffers1 (the camera's offset now comes from first_constant). SetGame<>() installs them.
- CHECK_GRAPHICS_API_COMPATIBILITY is gone: only ReShade wrapped the SR interop's D3D12 device. Logs go to Luma.log, the Resolution Scale is saved in Luma.toml, and the credits list SafetyHook instead of ReShade.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Needs Anti-Aliasing set to TAA in the game's video settings.

- Every ternary in the mod is now an early return or a default overridden by an if, which reads better. Behaviour is unchanged.
- The "its table / its own Halton" choice the jitter code made three times is now one helper, EngineJitter::GetSequenceName().

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PetarBadzhakov added a commit to PetarBadzhakov/Luma-Framework that referenced this pull request Nov 15, 2026
Needs Anti-Aliasing set to TAA in the game's video settings.

- The mod from Filoppi#277: SR (DLSS, FSR 4, XeSS, FSR 3) in place of the TAA resolve, SR's Halton in the engine's jitter table, and the game's hidden resolution scale as a setting. Built on DristoforColumb's Mass Effect Andromeda mod; FSR 4 on DX11 uses izueh's interop.
- The camera capture moves from ReShade's events to core's hooks: PostMap, OnResourceDestroyed and PreVSSetConstantBuffers, which also sees VSSetConstantBuffers1 (the camera's offset now comes from first_constant). SetGame<>() installs them.
- CHECK_GRAPHICS_API_COMPATIBILITY is gone: only ReShade wrapped the SR interop's D3D12 device. Logs go to Luma.log, the Resolution Scale is saved in Luma.toml, and the credits list SafetyHook instead of ReShade.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PetarBadzhakov added a commit to PetarBadzhakov/Luma-Framework that referenced this pull request Nov 15, 2026
Needs Anti-Aliasing set to TAA in the game's video settings.

- The mod from Filoppi#277: SR (DLSS, FSR 4, XeSS, FSR 3) in place of the TAA resolve, SR's Halton in the engine's jitter table, and the game's hidden resolution scale as a setting. Built on DristoforColumb's Mass Effect Andromeda mod; FSR 4 on DX11 uses izueh's interop.
- The camera capture moves from ReShade's events to core's hooks: PostMap, OnResourceDestroyed and PreVSSetConstantBuffers, which also sees VSSetConstantBuffers1 (the camera's offset now comes from first_constant). SetGame<>() installs them.
- CHECK_GRAPHICS_API_COMPATIBILITY is gone: only ReShade wrapped the SR interop's D3D12 device. Logs go to Luma.log, the Resolution Scale is saved in Luma.toml, and the credits list SafetyHook instead of ReShade.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PetarBadzhakov added a commit to PetarBadzhakov/Luma-Framework that referenced this pull request Nov 15, 2026
Needs Anti-Aliasing set to TAA in the game's video settings.

- The mod exactly as in Filoppi#277 (its head, 487ce78), so the next commit shows only the native port. Built on DristoforColumb's Mass Effect Andromeda mod; FSR 4 on DX11 uses izueh's interop.
- It still uses ReShade's API, so it only builds with the next commit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Izueh pushed a commit to Izueh/Luma-Framework that referenced this pull request Nov 16, 2026
Needs Anti-Aliasing set to TAA in the game's video settings.

- The mod exactly as in Filoppi#277 (its head, 487ce78), so the next commit shows only the native port. Built on DristoforColumb's Mass Effect Andromeda mod; FSR 4 on DX11 uses izueh's interop.
- It still uses ReShade's API, so it only builds with the next commit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant