Skip to content

fix(frame generation): fix missing FG menu#1267

Merged
doodlum merged 2 commits into
devfrom
fg-fix
Jul 15, 2025
Merged

fix(frame generation): fix missing FG menu#1267
doodlum merged 2 commits into
devfrom
fg-fix

Conversation

@doodlum
Copy link
Copy Markdown
Collaborator

@doodlum doodlum commented Jul 15, 2025

Summary by CodeRabbit

  • Bug Fixes
    • Improved the detection of frame generation feature availability, ensuring options are shown when supported regardless of other settings.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Jul 15, 2025

Walkthrough

The update modifies the logic in the DrawSettings() method of Upscaling.cpp to determine frame generation feature availability without considering the d3d12Interop flag. Now, frame generation is available if either NVIDIA DLSS-G or AMD FSR 3.1 Frame Generation is present, independent of d3d12Interop.

Changes

File(s) Change Summary
src/Upscaling.cpp Updated DrawSettings() to remove d3d12Interop dependency when checking frame generation availability.

Poem

In the fields of code, a flag set free,
No longer bound by interop's decree.
Frame gen appears when features align,
DLSS or FSR—now both can shine!
A hop, a skip, the logic's clear—
More frames for all, let’s give a cheer!
🐇✨

✨ Finishing Touches
  • 📝 Generate Docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Automated formatting by clang-format, prettier, and other hooks.
See https://pre-commit.ci for details.
@github-actions
Copy link
Copy Markdown

Using provided base ref: 62e2b5a
Using base ref: 62e2b5a
Base commit date: 2025-07-15T01:22:04-07:00 (Tuesday, July 15, 2025 01:22 AM)
No actionable suggestions for changed features.

@doodlum doodlum changed the title fix: fix missing FG menu fix(Frame Generation): fix missing FG menu Jul 15, 2025
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 62e2b5a and 07ccfaa.

📒 Files selected for processing (1)
  • src/Upscaling.cpp (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Build plugin and addons

Comment thread src/Upscaling.cpp
Comment on lines +93 to +94
bool frameGenAvailable = ((globals::streamline && globals::streamline->featureDLSSG) ||
(globals::fidelityFX && globals::fidelityFX->featureFSR3FG));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Update the user message to reflect the new availability logic.

The error message at line 156 still mentions "D3D12 interop" as a requirement, but the availability check no longer considers this requirement. This will confuse users who see the feature as available but then see conflicting error messages.

-				ImGui::Text("Frame Generation is not available on your system.\nThis requires either NVIDIA DLSS-G or AMD FSR 3.1 Frame Generation support and D3D12 interop.");
+				ImGui::Text("Frame Generation is not available on your system.\nThis requires either NVIDIA DLSS-G or AMD FSR 3.1 Frame Generation support.");
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
bool frameGenAvailable = ((globals::streamline && globals::streamline->featureDLSSG) ||
(globals::fidelityFX && globals::fidelityFX->featureFSR3FG));
ImGui::Text("Frame Generation is not available on your system.\nThis requires either NVIDIA DLSS-G or AMD FSR 3.1 Frame Generation support.");
🤖 Prompt for AI Agents
In src/Upscaling.cpp around lines 93 to 94 and line 156, the user error message
still references "D3D12 interop" as a requirement, but the availability logic no
longer checks for this. Update the error message at line 156 to remove or revise
the mention of "D3D12 interop" so it accurately reflects the current feature
availability conditions, preventing user confusion.

💡 Verification agent

🧩 Analysis chain

Review the inconsistency between availability check and functionality requirements.

The change removes the d3d12Interop dependency from the availability check, but frame generation functionality throughout the codebase still requires d3d12Interop to be true (lines 128, 141-142, 146-147, 541, 676, 728, 752, 834). This creates an inconsistency where users will see frame generation options available but most functionality will be disabled or non-functional without D3D12 interop.

Consider either:

  1. Reverting this change and fixing the root cause of the missing menu differently
  2. Updating the user message at line 156 to reflect the new logic
  3. Implementing graceful handling throughout the codebase when frame generation features are available but D3D12 interop is not

🏁 Script executed:

#!/bin/bash
# Search for other d3d12Interop dependencies in frame generation code
rg -A 3 -B 3 "d3d12Interop.*frame|frame.*d3d12Interop" --type cpp

Length of output: 1501


Frame Generation Availability Inconsistency

The new availability check in DrawSettings (lines 93–94) no longer includes d3d12Interop, but downstream functionality still requires it. Verified references in src/Upscaling.cpp:

  • DrawSettings():
    bool frameGenAvailable = ((globals::streamline && globals::streamline->featureDLSSG) ||
                              (globals::fidelityFX && globals::fidelityFX->featureFSR3FG));
  • UI warning (onlyRequiresRestart):
    if (onlyRequiresRestart && settings.frameGenerationMode && !d3d12Interop)
        ImGui::Text("Warning: Requires restart");
  • Upscaling::CopyBuffersToSharedResources():
    if (!d3d12Interop || !settings.frameGenerationMode)
        return;
  • RenderReShade path:
    if (!d3d12Interop || !settings.frameGenerationMode)
        return;
  • Upscaling::FrameLimiter():
    if (d3d12Interop && settings.frameLimitMode) { … }
  • Upscaling::IsFrameGenerationActive():
    return d3d12Interop && settings.frameGenerationMode;

Action items:

  • Either restore the d3d12Interop check in the availability logic
  • Or remove/adjust all downstream d3d12Interop guards so they align with the new availability semantics
  • At minimum, update the user-facing message in DrawSettings (around line 156) to indicate that D3D12 interop is required for full functionality
🤖 Prompt for AI Agents
In src/Upscaling.cpp around lines 93-94, the frame generation availability check
in DrawSettings no longer includes the d3d12Interop condition, but downstream
code still depends on it. To fix this, either add the d3d12Interop check back
into the frameGenAvailable assignment to ensure consistency, or update all
downstream conditions that check d3d12Interop to align with the new availability
logic. Additionally, update the user-facing warning message near line 156 to
clearly state that D3D12 interop is required for full frame generation
functionality.

@doodlum doodlum changed the title fix(Frame Generation): fix missing FG menu fix(frame generation): fix missing FG menu Jul 15, 2025
@github-actions
Copy link
Copy Markdown

✅ A pre-release build is available for this PR:
Download

@doodlum doodlum merged commit 83fdaf4 into dev Jul 15, 2025
21 checks passed
alandtse pushed a commit to alandtse/open-shaders that referenced this pull request Jul 20, 2025
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
@coderabbitai coderabbitai Bot mentioned this pull request Sep 25, 2025
@alandtse alandtse deleted the fg-fix branch February 6, 2026 05:20
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.

2 participants