fix(upscaling): fix upscaling freezes#1513
Conversation
WalkthroughAdds a 1000 ms delay in Upscaling::CheckResources after creating new upscaling resources when the upscale method changes, before updating previousUpscaleMode and previousFrameGenMode. No other logic, APIs, or control flow paths are modified. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor Game
participant U as Upscaling::CheckResources
participant R as Resource Creation
Game->>U: CheckResources()
alt Upscale/FrameGen mode changed
U->>R: Create upscaling resources
Note over U: Wait 1000 ms before state update
U-->>U: Sleep(1000ms)
U-->>U: Update previousUpscaleMode / previousFrameGenMode
else No mode change
U-->>U: No action
end
U-->>Game: return
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (2)**/*.{cpp,cxx,cc,c,h,hpp,hxx,hlsl,hlsli,fx,fxh,py}📄 CodeRabbit inference engine (.github/copilot-instructions.md)
Files:
src/**/*.{cpp,cxx,cc,h,hpp,hxx}📄 CodeRabbit inference engine (.github/copilot-instructions.md)
Files:
⏰ 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)
🔇 Additional comments (1)
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 |
|
✅ A pre-release build is available for this PR: |
Summary by CodeRabbit