Skip to content

[Bug/Win11] Street Fighter Zero 3 (Japan) temporary yellow tint on startup and menu with GCC LTO builds #77

Description

@Immersion95

Street Fighter Zero 3 (Japan) has a temporary yellow tint with Beetle Saturn.

During startup, the first logo/loading screen appears yellowish. The main menu also gets a yellow/brown tint for a few seconds before returning to normal.

This seems to have been introduced by recent commits, since the issue does not happen in standalone Mednafen.

I attached a video showing the issue (at 12s and 20s).

Street_Fighter_Zero_3_Japan_yellow_tint_issue_with_audio.mp4

Tested on 8f0d69a

The issue isn't present on Mednafen 1.32.1

Edit - June, 14th : Additional finding

The issue appears to be build-configuration dependent.

I tested the same commit with different Windows x64 builds:

  • Windows x64, MSYS2, non-LTO, correct rendering --> no yellow tint.
  • Windows x64, MSYS2, LTO --> yellow tint appears.
  • Windows x64, MSYS2, LTO without -fipa-pta --> yellow tint still appears.

So the issue does not seem to be caused by -fipa-pta specifically. It looks triggered by GCC LTO itself, or by undefined behavior exposed by LTO.

A non-LTO build from the same commit renders Street Fighter Zero 3 correctly, while an LTO-enabled build shows the yellow tint.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions