chore(upscaling): update SDKs#1684
Conversation
📝 WalkthroughWalkthroughThis pull request removes DLSS preset selection functionality from the upscaling feature. Changes include removing the DLSSPreset member from the Settings struct, eliminating the associated UI controls, and stripping out the preset-based branching logic that previously configured multiple DLSS variant presets based on user selection. The submodule reference for Streamline-DX12 is also updated. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
✨ Finishing touches
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. Comment |
Automated formatting by clang-format, prettier, and other hooks. See https://pre-commit.ci for details.
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
src/Features/Upscaling.cpp (1)
15-25: Consider a more descriptive PR title.The current title "chore(upscaling): update SDKs" emphasizes the SDK update but doesn't describe the main functional change—removal of DLSS preset selection. Consider a title that better captures the scope, such as:
refactor(upscaling): remove DLSS preset selection and update SDKschore(upscaling): streamline DLSS configuration and update SDKsThis helps reviewers and future maintainers better understand the changes at a glance.
Based on coding guidelines requesting suggestions for conventional commit titles that accurately describe code changes.
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (7)
features/Upscaling/Shaders/Upscaling/FidelityFX/amd_fidelityfx_framegeneration_dx12.dllis excluded by!**/*.dllfeatures/Upscaling/Shaders/Upscaling/FidelityFX/amd_fidelityfx_loader_dx12.dllis excluded by!**/*.dllfeatures/Upscaling/Shaders/Upscaling/Streamline/nvngx_dlss.dllis excluded by!**/*.dllfeatures/Upscaling/Shaders/Upscaling/Streamline/sl.common.dllis excluded by!**/*.dllfeatures/Upscaling/Shaders/Upscaling/Streamline/sl.dlss.dllis excluded by!**/*.dllfeatures/Upscaling/Shaders/Upscaling/Streamline/sl.interposer.dllis excluded by!**/*.dllfeatures/Upscaling/Shaders/Upscaling/Streamline/sl.nis.dllis excluded by!**/*.dll
📒 Files selected for processing (6)
extern/Streamline-DX12features/Upscaling/Shaders/Upscaling/FidelityFX/amd_fidelityfx_framegeneration_dx12.pdbfeatures/Upscaling/Shaders/Upscaling/FidelityFX/amd_fidelityfx_loader_dx12.pdbsrc/Features/Upscaling.cppsrc/Features/Upscaling.hsrc/Features/Upscaling/Streamline.cpp
💤 Files with no reviewable changes (2)
- src/Features/Upscaling.h
- src/Features/Upscaling/Streamline.cpp
🧰 Additional context used
📓 Path-based instructions (3)
**/*
⚙️ CodeRabbit configuration file
**/*: When reviewing PRs, please provide suggestions for:
Conventional Commit Titles (if not following https://www.conventionalcommits.org/ or
if the existing title does not describe the code changes):
Format: type(scope): description
Length: 50 characters limit for title, 72 for body
Style: lowercase description, no ending period
Examples:
- feat(vr): add cross-eye sampling
- fix(water): resolve flowmap bug
- docs: update shader documentation
Issue References (if PR fixes bugs or implements features):
Suggest adding appropriate GitHub keywords:Otherwise, use your standard review approach focusing on code quality.
Files:
extern/Streamline-DX12src/Features/Upscaling.cpp
**/*.{cpp,cxx,cc,c,h,hpp,hxx,hlsl,hlsli,fx,fxh,py}
📄 CodeRabbit inference engine (.github/copilot-instructions.md)
Do not include TODO/FIXME placeholders; provide complete, working solutions
Files:
src/Features/Upscaling.cpp
src/**/*.{cpp,cxx,cc,h,hpp,hxx}
📄 CodeRabbit inference engine (.github/copilot-instructions.md)
src/**/*.{cpp,cxx,cc,h,hpp,hxx}: Ensure SE/AE/VR runtime compatibility; use runtime detection patterns (e.g., REL::RelocateMember())
Include robust error handling and resource management with graceful degradation in the plugin code
Files:
src/Features/Upscaling.cpp
🧠 Learnings (1)
📓 Common learnings
Learnt from: alandtse
Repo: doodlum/skyrim-community-shaders PR: 0
File: :0-0
Timestamp: 2025-07-05T05:20:45.823Z
Learning: In the skyrim-community-shaders repository, file deletion error handling improvements that replace existence checks and try-catch blocks with std::filesystem::remove error-code-based approaches are considered bug fixes rather than refactoring, as they address inadequate error handling and misleading log messages.
Learnt from: ThePagi
Repo: doodlum/skyrim-community-shaders PR: 1369
File: src/Features/SnowCover.cpp:515-515
Timestamp: 2025-10-02T14:20:33.454Z
Learning: In the Community Shaders codebase (skyrim-community-shaders repository), hardcoded shader resource slot numbers are used directly in code rather than being defined as named constants. This is the established convention and should not be flagged as an issue.
⏰ 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). (4)
- GitHub Check: Validate shader compilation (VR, .github/configs/shader-validation-vr.yaml)
- GitHub Check: Build plugin and addons
- GitHub Check: Validate shader compilation (Flatrim, .github/configs/shader-validation.yaml)
- GitHub Check: Run Shader Unit Tests
🔇 Additional comments (5)
src/Features/Upscaling.cpp (3)
186-218: LGTM: Preset UI correctly uses qualityMode.The upscaling preset UI has been properly updated to use
settings.qualityModefor both FSR and DLSS methods. The bounds checking withstd::clampat line 194 is good defensive programming.
353-374: Proper settings validation with bounds checking.The settings loading includes appropriate validation and clamping for the upscale method enums. The bounds checking at lines 359-361 and 363-365 will prevent out-of-range values from causing issues.
15-25: File not found in repository. The review referencessrc/Features/Upscaling.cpp, but this file does not exist in the codebase. Additionally, searches for the referenced code patterns—includingNLOHMANN_DEFINE_TYPE_NON_INTRUSIVE_WITH_DEFAULT,DLSSPreset,upscaleMethod, and related symbols—return no results. The review cannot be validated against the actual repository content.Likely an incorrect or invalid review comment.
extern/Streamline-DX12 (2)
1-1: PR title follows conventional commits format correctly.The title "chore(upscaling): update SDKs" appropriately uses the conventional commit format with type and scope.
1-1: This review comment is based on incorrect assumptions about the codebase.The Upscaling settings structure does not contain a
DLSSPresetmember that needs to be removed. The current implementation correctly uses anUpscaleMethodenum (with values kNONE, kTAA, kFSR, kDLSS) for method selection and aqualityModeuint for quality level settings. The serialization logic includes only the necessary fields, and the UI properly displays preset options through local string arrays without any orphaned preset-specific branching logic.The submodule pointer update to Streamline-DX12 is valid, but the verification concerns raised in this comment do not apply to the actual code structure in the repository.
Likely an incorrect or invalid review comment.
|
✅ A pre-release build is available for this PR: |
* build: bump eastl to 3.27.01 (community-shaders#1673) Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com> * fix(grass collision): ignore hkpListShape (community-shaders#1661) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> * chore(upscaling): update SDKs (community-shaders#1684) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> * chore(terrain shadows): modernize (community-shaders#1678) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> * feat: add user wiki link to readme (community-shaders#1689) * feat(LLF): add debug overlay in llf visualiser (community-shaders#1666) * feat: linear lighting (community-shaders#1359) Co-authored-by: jiayev <jiayev@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> * feat: weather and imagespace editor (community-shaders#1630) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * fix(ui): load previously selected theme on startup (community-shaders#1664) --------- Co-authored-by: Alan Tse <alandtse@users.noreply.github.com> Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com> Co-authored-by: doodlum <15017472+doodlum@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: jiayev <l936249247@hotmail.com> Co-authored-by: jiayev <jiayev@users.noreply.github.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.