View Issue Details

IDProjectCategoryView StatusLast Update
0006150The Dark ModGraphicspublic25.01.2025 23:06
ReporterDaft Mugi Assigned To 
PrioritynormalSeveritynormalReproducibilityhave not tried
Status resolvedResolutionfixed 
Product VersionTDM 2.10 
Target VersionTDM 2.13Fixed in VersionTDM 2.13 
Summary0006150: On Launch, Distorted First Frame When AA
DescriptionWhen launching the game with antialiasing turned on, there is a distorted frame before the main menu is shown. After the brief distortion, the main menu displays correctly and the game can be played without issue.

With antialiasing turned off, there is not any distortion when launching the game.

Forum Discussion (with screenshots): https://forums.thedarkmod.com/index.php?/topic/21626-bug-on-launch-distorted-first-frame-when-aa/
Steps To ReproduceLaunch game from desktop.
Additional InformationLinux, Ubuntu 22.04
AMD Radeon RX 6000 Series
OpenGL version: 4.6 (Core Profile) Mesa 22.0.5 core
TagsNo tags attached.

Activities

Daft Mugi

Daft Mugi

26.12.2024 23:01

developer   ~0016928

Last edited: 25.01.2025 23:04

This was partially fixed by the following commit:

```
r10914 | stgatilov | 2024-12-08 | 8 lines

Added a way to force-disable tonemapping everywhere if 3D game is not running (r_tonemapOnlyGame3d).

This can be useful because the new tonemapping settings affect main menu rather negatively.
Well, in fact even the simple gamma already affects cinematics the bad way, introducing ugly color banding on dark colors.

Note: normally we should do tonemapping after 3D game is rendered but before GUI overlays are rendered.
But this is a hard topic, because some of the GUI overlays are not actually GUI (e.g. underwater overlay), so this requires some kind of manual tagging.
Better leave this for the future.
```

When launching TDM:
* r_tonemapOnlyGame3d 1: first frame is fine.
* r_tonemapOnlyGame3d 0: first frame is distorted.

NOTE: I didn't mark this as "resolved" because things might change during 2.13-dev.
Daft Mugi

Daft Mugi

25.01.2025 23:04

developer   ~0016964

Last edited: 25.01.2025 23:06

This was fixed by the following commit:

```
r10930 | stgatilov | 2025-01-25 | 7 lines

Clear background during main menu.

This fixes the issue e.g. with AT1: Lucy and tonemap disabled.
The briefing there does not use any backgrounds, and no-clear policy results in HOM-like effects.

Originally reported here:
  https://forums.thedarkmod.com/index.php?/topic/22635-beta-testing-213/#findComment-499723
```
Note: The r_tonemapOnlyGame3d cvar value does not matter with this fix.

Issue History

Date Modified Username Field Change
04.11.2022 21:22 Daft Mugi New Issue
26.12.2024 23:01 Daft Mugi Note Added: 0016928
27.12.2024 07:29 Daft Mugi Note Edited: 0016928
25.01.2025 23:04 Daft Mugi Note Added: 0016964
25.01.2025 23:04 Daft Mugi Note Edited: 0016928
25.01.2025 23:05 Daft Mugi Status new => resolved
25.01.2025 23:05 Daft Mugi Resolution open => fixed
25.01.2025 23:05 Daft Mugi Fixed in Version => TDM 2.13
25.01.2025 23:05 Daft Mugi Target Version => TDM 2.13
25.01.2025 23:06 Daft Mugi Note Edited: 0016964