Reduce pro-camera bokeh grain with a depth-guided resolve #115
All Vouch review confidence checks passed
Residual risk 0.31 = Change Risk (0.52) × (1 − Review Confidence (0.40)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 650 lines diff across 8 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 72% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.388
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #115"
general
weight: 0.35
greptile-apps[bot]
What this changes
Reduce grain in the pro camera's defocused backgrounds and bokeh with a 5 x 5 resolve guided by depth and blur radius. Filtering fades in between blur radii of 1 and 3 pixels, preserving focused detail and foreground silhouettes. The existing nearest-sampled gather, 128-tap default and lens model stay unchanged; exposure and ACEScct encoding run after the resolve.
This affects the existing OpenBFME camera addition only. It adds one compute pass and an RGBA16F intermediate (about 15.8 MiB at 1080p). No simulation state or retail behaviour changes; the existing gather attribution is retained and the new code is GPL-3.0.
<img width="1472" height="960" alt="comparison" src="https://github.com/user-attachments/assets/972362ae-7717-4856-a763-1284e26d0e5d" />
How it was checked
pro_camera_test.gdand newpro_camera_bokeh_test.gdpass on the final rebased branch.git diff --checkpass. No full C++ build or engine suite: changes are limited to the rendering script, its generated-scene test and documentation..gitmodulescheck; the tested base produced the same two diagnostics. CI still needs to confirm the public-tree audit.GPU scene times, original versus this change (same scene, 128 taps; average of two run medians, 180 measured frames after 60 warm-up frames):
| Internal resolution | Original | With resolve | Added |
| --- | ---: | ---: | ---: |
| 1920 x 1080 | 7.92 ms | 8.49 ms | 0.57 ms |
| 2560 x 1440 | 15.36 ms | 15.94 ms | 0.58 ms |
These are a mostly defocused generated scene on one GPU, not whole-game FPS. No in-game or moving-camera benchmark is claimed. The resolve can soften bokeh boundaries slightly and leaves some residual grain; it does not use temporal history.
Checklist
<!-- greptile_comment -->
<!-- greptile_summary -->
<h2><a href="https://app.greptile.com/api/retrigger?id=87649768"><picture><source media="(prefers-color-scheme: dark)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/RetriggerDark.svg?v=2"><source media="(prefers-color-scheme: light)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/Retrigger.svg?v=2"><img alt="Retrigger" src="https://greptile-static-assets.s3.amazonaws.com/badges/Retrigger.svg?v=2" align="right"></picture></a><a href="https://app.greptile.com/openbfme/github/Open-BFME/openbfme-godot/-/pull/115"><picture><source media="(prefers-color-scheme: dark)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/ViewInGreptileDark.svg?v=2"><source media="(prefers-color-scheme: light)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/ViewInGreptile.svg?v=2"><img alt="View in Greptile" src="https://greptile-static-assets.s3.amazonaws.com/badges/ViewInGreptile.svg?v=2" align="right"></picture></a>Confidence Score: 4/5</h2>
<!-- greptile-risk -->
The PR appears safe to merge, with two non-blocking gaps in the new regression test.
<h2>Findings</h2>
1. <img alt="P2" src="https://greptile-static-assets.s3.amazonaws.com/badges/p2.svg?v=9" align="top"> Disabled blur passes the test <a href="https://github.com/Open-BFME/openbfme-godot/pull/115#discussion_r4370986202">▶</a>
2. <img alt="P2" src="https://greptile-static-assets.s3.amazonaws.com/badges/p2.svg?v=9" align="top"> Resize check misses broken rendering <a href="https://github.com/Open-BFME/openbfme-godot/pull/115#discussion_r4370986204">▶</a>
<details><summary>Fix with agent prompt</summary>
`
`</details>
<h3>Summary</h3>
Adds a depth- and blur-guided 5 × 5 resolve after the existing gather.
<details open><summary><h3>Diagram</h3></summary>
</details>
<!-- greptile_confidence_score:4 -->
<sub>Reviews (1) · Last reviewed commit: "Reduce pro-camera bokeh grain with a dep..." · Reviewed by Greptile</sub>
<!-- /greptile_comment -->