Skip to content

[O2Jam (2003)] Poor performance, color keying issues, Alt-Tab rendering break, and missing DDraw hooks in UI #226

Description

@red-crate

ddraw_log_with_dxvk_conf.zip

I tested the original O2Jam (2003 release, not a recent remaster/clone) with D7VK 1.9 on Windows. The game seems to utilize both DirectX 7 and Direct3D 7 (running it via dgVoodoo2 requires both ddraw.dll and D3DImm.dll).

I encountered the following main issues:

1. Focus Loss (Alt-Tab) Breakage:

  • If I Alt-Tab to the desktop immediately after launching the game and then return to it, the rendering completely breaks. The screen goes black, and only the mouse cursor and a few random text elements are visible.

2. Hooking & Rendering Issues in UI/Lobby:

  • When launching the game normally, the intro brand logo is supposed to fade in and out. With D7VK, it just stays at a fixed, bright opacity.
  • Performance in the lobby/rooms is extremely poor.
  • The D7VK/DXVK HUD does not appear in the lobby at all. It only starts hooking and displaying once I actually start playing a song (entering the 3D gameplay phase). This suggests D7VK's ddraw.dll might not be hooking the 2D UI properly.
  • After a song finishes, it should return to the room UI and render it, but it fails to load properly (I can only hear the audio, no visuals).

3. Missing Color Keying for 2D Objects (and Mouse Cursor):

  • The game renders 2D note images and uses color keying for transparency.
  • O2Jam specifies the transparent color individually for each object file (.ojt and .ojs custom formats). It varies slightly from file to file, not just a single hardcoded color.
  • D7VK currently fails to drop these transparent colors, showing the background boxes on the notes (Likely related to your colorkey tracker).
  • Additionally, when the Alt-Tab bug (mentioned in point 1) occurs, the mouse cursor is also rendered with corrupted pink backgrounds (color key failure).
  • 3D objects (like judgement effects) are rendered perfectly fine.

4. Severe Performance Drop in Gameplay:

  • During actual song gameplay, the framerate drops to around 12-20 FPS. Given my system specs (5900X + 7900 XTX), this seems to be an API translation bottleneck or an error loop.

Software information

  • Name of the game: O2Jam (2003 original version)
  • Settings used: Default (dxvk.conf attached)
  • Mods/Addons: None

System information

  • GPU: AMD Radeon RX 7900 XTX (CPU: AMD Ryzen 9 5900X)
  • Driver: Adrenalin 26.5.1 but whatever
  • Wine version: N/A (Native Windows 11 25H2)
  • D7VK version: 1.9

Log files

I have attached a .zip file containing:

  1. OTwo_ddraw.log (Around 16kB, generated after playing through the issues and closing the game normally).
  2. dxvk.conf

Screenshots

1. After Alt-Tab (Rendering Break)
After Alt-Tab


2. Missing Transparent Colors (Color Keying Issue)

D7VK 1.9 (Issue) Windows XP (Expected)
D7VK 1.9 Windows XP

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcolorkeyWhy even use an alpha format, right?d3d7Everyone's favorite cursed APIddrawWait... this isn't D3D at all!performanceSuffers from (unusually) poor performancewindowsThe one and only mainstream OS

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions