Fix Lightning default render backend#670
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthrough
ChangesLightning render backend defaulting
Possibly related PRs
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
Description
Fix Lightning exports so they use the stable default render backend when no explicit backend is configured.
Motivation
On Linux, Lightning export could select WebGPU automatically when
navigator.gpuwas available, even though the renderer policy defaults Lightning to WebGL for stability. This could trigger export failures in the WebGPU path. The change makesModernVideoExporterapply the existing Lightning backend policy by default, while still allowing explicit WebGPU overrides for testing/debugging.Type of Change
Related Issue(s)
Fix #644
Screenshots / Video
N/A
Testing Guide
Run:
npm test -- src/lib/exporter/modernVideoExporter.fallback.test.ts src/lib/exporter/backendPolicy.test.tsVerified locally: 2 test files passed, 16 tests passed.
Checklist
Summary by CodeRabbit
Bug Fixes
Tests