This is just for caching and reducing look ups. Minor performance boost. #1273
This is just for caching and reducing look ups. Minor performance boost. #1273mcdubhghlas wants to merge 4 commits into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
WalkthroughThe PR refactors the clustered forward renderer to optimize parameter passing and reduce repeated scene state lookups. Camera data is now passed by const reference, instance buffers are simplified with early returns, shadow loops iterate by precomputed counts, and the main render function caches scene data and debug mode to populate render passes efficiently. ChangesRendering Pipeline Optimization
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 Infer (1.2.0)servers/rendering/renderer_scene_render.cppIn file included from servers/rendering/renderer_scene_render.cpp:39: ... [truncated 1212 characters] ... /include" servers/rendering/renderer_rd/forward_clustered/render_forward_clustered.cppIn file included from servers/rendering/renderer_rd/forward_clustered/render_forward_clustered.cpp:39: ... [truncated 1344 characters] ... "/usr/local/include" "-internal-isystem" 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 |
If anything, it's just a little cleaner.
Summary by CodeRabbit