Texture corruption on beach scenes and flickering on distant objects in native rendering (likely from upstream VIctory / VIctory-belobug-AMD) #5

Open
opened 2026-12-01 20:41:43 +00:00 by github-bot · 0 comments
Owner

@⁠Zetsukae on GitHub · 2026-12-01 08:34 UTC · original

Summary

When running a heavy AAA title through Northstar-AMD with native rendering (Frame Generation and FSR disabled), two visual problems appear, and they look like they come from the upstream codebase:

  1. Texture corruption on beach scenes
  2. Flickering on objects that depends on their distance from the camera

Native performance is also low (~25–30 FPS). After about 6 hours of investigation, including a custom frame-capture tool, the evidence points to the upstream base (VIctory / VIctory-belobug-AMD) rather than to changes made in Northstar-AMD. The upstream repository (Belobug/VIctory-Belobug-AMD) is no longer public, so this issue tracks the problem here.

Environment & Context

Item Value
Codebase lineage VIctory → VIctory-belobug-AMD → Northstar-AMD (~209k lines total)
Northstar-AMD commit 0e70a36 (main)
Upstream base commit Belobug/VIctory-Belobug-AMD, branch a-publier, commit cd8dfc0 (repository no longer public)
Game The Game (version not shared)
GPU / Driver AMD Radeon RX 7900 XTX / [insert driver version]
CPU / RAM Intel Core i9-12900K / 64 GB
OS Windows 11
Rendering mode Native: Frame Generation off, FSR off
In-game settings Launcher default preset, 4K (3840×2160)

Frame Generation and FSR were turned off on purpose, so that upscaling and frame interpolation can be ruled out as the cause.

Reproduction Steps

  1. Build Northstar-AMD at 0e70a36 (or the upstream equivalent; see "Next Steps").
  2. Launch The Game through the translation layer.
  3. In the graphics settings, turn off Frame Generation and FSR, and keep the launcher's default preset at 4K.
  4. Go to any beach area (every beach tested shows the issue).
  5. Look at the textures on the ground, water, and shoreline.
  6. Move the camera toward and away from objects in the middle and far distance, and watch for flickering.

Actual Behavior

  • Texture corruption shows up on beach scenes: surfaces render as black / "void", with no texture data visible, instead of the expected textures.
  • Distant objects flicker: objects at certain distances flicker or pop, and the effect changes as the camera moves.
  • Native performance is ~25–30 FPS.
  • With Frame Generation + FSR 4 turned on, the frame rate reaches ~60 FPS, but the same artifacts are still visible. This suggests the problem is not caused by upscaling or interpolation.

Expected Behavior

  • Beach scenes render with correct textures, matching the original platform.
  • Distant objects render stably, with no flickering when LODs or mip levels change.
  • Native performance matches what the hardware should reasonably deliver: 60 FPS native, without Frame Generation or FSR.

Technical Hypotheses / Suspected Areas

These are hypotheses only; none has been confirmed.

1. UMA → discrete VRAM resource mapping

  • The console uses unified memory (UMA). On a PC with a discrete GPU, resources may be aliased, placed, or synchronized incorrectly when they are mapped to separate CPU/GPU memory.
  • Large or streamed resources, such as terrain, water, and reflection targets, may be read before their upload or copy has finished, or may be read from stale memory.

2. Texture / asset streaming

  • Beach scenes typically combine large draw distances with heavy streaming. Corruption could come from races between the streaming writes and GPU reads, from heaps being reused before they are no longer in use, or from mip tails that are only partly resident.

3. Shaders, samplers, and LOD

  • Sampler state may be translated incorrectly: LOD bias, min/max LOD clamps, anisotropy, or address modes.
  • Mip selection or derivative calculations may differ in the translated shaders, especially for water and reflection shaders.
  • Format or swizzle mismatches in specific texture formats used on these surfaces.

4. Depth precision / depth bias

  • The flickering depends on distance, which suggests possible depth problems: reversed-Z handling, depth format conversion, depth bias / slope-scaled bias translation, or a mismatch in depth bounds or clip range.

5. Culling and resource transitions / barriers

  • Missing or wrong barriers between passes, for example between a reflection or depth prepass and the passes that read it, could produce corruption that varies from frame to frame.
  • GPU-driven culling or LOD selection may read stale data when synchronization is missing.

6. Native performance bottlenecks

  • 25–30 FPS at native resolution may point to CPU-side translation overhead, pipeline/shader compilation stalls, too much synchronization, or memory copies caused by UMA emulation.
  • Low performance alone would not explain the artifacts, but it may share a root cause with them (for example, overly conservative or misplaced synchronization).

Investigation So Far

  • Built a screenshot/frame-capture debug tool to look at individual frames in the affected beach scenes.
  • Spent ~6 hours examining the captured frames and comparing them against the recent Northstar-AMD changes.
  • Conclusion: the artifacts do not appear to come from Northstar-AMD-specific changes. The root cause most likely lies in the upstream VIctory / VIctory-belobug-AMD code.

Next Steps / Information Needed

  • Reproduce on a clean VIctory-belobug-AMD build at cd8dfc0 (branch a-publier), with no Northstar-AMD changes, to confirm the issue comes from upstream.
  • If possible, also reproduce on plain VIctory to find out which layer introduced it.
  • Attach frame captures from the debug tool for: (a) a corrupted beach frame and (b) a frame where distant objects flicker: [attach captures].
  • Attach a RenderDoc (or equivalent) capture of an affected frame, if possible: [attach].
  • Attach translation-layer logs and any validation-layer output from the session: [attach logs].
  • Test whether the artifacts change with:
    • a forced sampler LOD bias of 0 / mip clamps turned off
    • stricter synchronization (full barriers between passes)
    • streaming turned off or textures preloaded, if the game or layer allows it
  • Profile native performance (CPU vs. GPU bound, time spent in translation vs. driver): [attach profile].
  • Bisect the upstream history if a known-good upstream commit exists: [insert known-good commit, if any].

Any pointers from anyone familiar with the upstream code on how UMA memory and resource mapping, sampler translation, or depth handling are implemented would help narrow this down.

**@⁠Zetsukae** on GitHub · 2026-12-01 08:34 UTC · [original](https://github.com/Zetsukae/Northstar-AMD/issues/5) ## Summary When running a heavy AAA title through `Northstar-AMD` with **native rendering** (Frame Generation and FSR disabled), two visual problems appear, and they look like they come from the upstream codebase: 1. **Texture corruption on beach scenes** 2. **Flickering on objects that depends on their distance from the camera** Native performance is also low (~25–30 FPS). After about 6 hours of investigation, including a custom frame-capture tool, the evidence points to the upstream base (`VIctory` / `VIctory-belobug-AMD`) rather than to changes made in `Northstar-AMD`. The upstream repository (`Belobug/VIctory-Belobug-AMD`) is no longer public, so this issue tracks the problem here. ## Environment & Context | Item | Value | |---|---| | Codebase lineage | `VIctory` → `VIctory-belobug-AMD` → `Northstar-AMD` (~209k lines total) | | `Northstar-AMD` commit | `0e70a36` (`main`) | | Upstream base commit | `Belobug/VIctory-Belobug-AMD`, branch `a-publier`, commit `cd8dfc0` (repository no longer public) | | Game | The Game (version not shared) | | GPU / Driver | AMD Radeon RX 7900 XTX / `[insert driver version]` | | CPU / RAM | Intel Core i9-12900K / 64 GB | | OS | Windows 11 | | Rendering mode | **Native**: Frame Generation **off**, FSR **off** | | In-game settings | Launcher default preset, 4K (3840×2160) | Frame Generation and FSR were turned off on purpose, so that upscaling and frame interpolation can be ruled out as the cause. ## Reproduction Steps 1. Build `Northstar-AMD` at `0e70a36` (or the upstream equivalent; see "Next Steps"). 2. Launch The Game through the translation layer. 3. In the graphics settings, turn off Frame Generation and FSR, and keep the launcher's default preset at 4K. 4. Go to **any beach area** (every beach tested shows the issue). 5. Look at the textures on the ground, water, and shoreline. 6. Move the camera toward and away from objects in the middle and far distance, and watch for flickering. ## Actual Behavior - **Texture corruption** shows up on beach scenes: surfaces render as **black / "void"**, with no texture data visible, instead of the expected textures. - **Distant objects flicker**: objects at certain distances flicker or pop, and the effect changes as the camera moves. - **Native performance is ~25–30 FPS.** - With Frame Generation + FSR 4 turned on, the frame rate reaches ~60 FPS, **but the same artifacts are still visible.** This suggests the problem is not caused by upscaling or interpolation. ## Expected Behavior - Beach scenes render with correct textures, matching the original platform. - Distant objects render stably, with no flickering when LODs or mip levels change. - Native performance matches what the hardware should reasonably deliver: 60 FPS native, without Frame Generation or FSR. ## Technical Hypotheses / Suspected Areas These are hypotheses only; none has been confirmed. ### 1. UMA → discrete VRAM resource mapping - The console uses unified memory (UMA). On a PC with a discrete GPU, resources may be aliased, placed, or synchronized incorrectly when they are mapped to separate CPU/GPU memory. - Large or streamed resources, such as terrain, water, and reflection targets, may be read before their upload or copy has finished, or may be read from stale memory. ### 2. Texture / asset streaming - Beach scenes typically combine large draw distances with heavy streaming. Corruption could come from races between the streaming writes and GPU reads, from heaps being reused before they are no longer in use, or from mip tails that are only partly resident. ### 3. Shaders, samplers, and LOD - Sampler state may be translated incorrectly: LOD bias, min/max LOD clamps, anisotropy, or address modes. - Mip selection or derivative calculations may differ in the translated shaders, especially for water and reflection shaders. - Format or swizzle mismatches in specific texture formats used on these surfaces. ### 4. Depth precision / depth bias - The flickering depends on distance, which suggests possible depth problems: reversed-Z handling, depth format conversion, depth bias / slope-scaled bias translation, or a mismatch in depth bounds or clip range. ### 5. Culling and resource transitions / barriers - Missing or wrong barriers between passes, for example between a reflection or depth prepass and the passes that read it, could produce corruption that varies from frame to frame. - GPU-driven culling or LOD selection may read stale data when synchronization is missing. ### 6. Native performance bottlenecks - 25–30 FPS at native resolution may point to CPU-side translation overhead, pipeline/shader compilation stalls, too much synchronization, or memory copies caused by UMA emulation. - Low performance alone would not explain the artifacts, but it may share a root cause with them (for example, overly conservative or misplaced synchronization). ## Investigation So Far - Built a **screenshot/frame-capture debug tool** to look at individual frames in the affected beach scenes. - Spent **~6 hours** examining the captured frames and comparing them against the recent `Northstar-AMD` changes. - **Conclusion:** the artifacts do not appear to come from `Northstar-AMD`-specific changes. The root cause most likely lies in the upstream `VIctory` / `VIctory-belobug-AMD` code. ## Next Steps / Information Needed - [x] **Reproduce on a clean `VIctory-belobug-AMD` build** at `cd8dfc0` (branch `a-publier`), with no `Northstar-AMD` changes, to confirm the issue comes from upstream. - [ ] If possible, also reproduce on plain `VIctory` to find out which layer introduced it. - [ ] Attach **frame captures** from the debug tool for: (a) a corrupted beach frame and (b) a frame where distant objects flicker: `[attach captures]`. - [ ] Attach a **RenderDoc (or equivalent) capture** of an affected frame, if possible: `[attach]`. - [ ] Attach **translation-layer logs** and any validation-layer output from the session: `[attach logs]`. - [ ] Test whether the artifacts change with: - a forced sampler LOD bias of 0 / mip clamps turned off - stricter synchronization (full barriers between passes) - streaming turned off or textures preloaded, if the game or layer allows it - [ ] Profile native performance (CPU vs. GPU bound, time spent in translation vs. driver): `[attach profile]`. - [ ] Bisect the upstream history if a known-good upstream commit exists: `[insert known-good commit, if any]`. Any pointers from anyone familiar with the upstream code on how UMA memory and resource mapping, sampler translation, or depth handling are implemented would help narrow this down.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 20:41:43 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.