-
Notifications
You must be signed in to change notification settings - Fork 1.4k
feat: Massive performance overhaul for editor playback #1447
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
4c260d8
feat: Massive performance overhaul for editor playback
richiemcilroy e62ccca
clippy bits
richiemcilroy 5a4a18b
Add performance logging and playback optimizations
richiemcilroy 38b171c
Add YUV420P to RGBA shader and canvas render metrics
richiemcilroy 1a2ffd8
Refactor YUV conversion pipeline and shaders
richiemcilroy 169582b
wip: Editor playback optimisations
richiemcilroy 48e2c5a
feat: Further optimisation of editor
richiemcilroy d4c7558
Optimize project state access during playback
richiemcilroy aa30be3
Implement OffscreenCanvas and SharedArrayBuffer for playback
richiemcilroy 4699889
Refactor frame padding stripping into helper function
richiemcilroy 37f4822
Debounce canvas container bounds updates in PreviewCanvas
richiemcilroy c98daa8
Show grid only after frame is rendered in PreviewCanvas
richiemcilroy f50000f
Allow biome format command in desktop app
richiemcilroy c2faa86
Increase FPS constant from 30 to 60
richiemcilroy 7e262f8
Add frame queuing and render loop for offscreen canvas
richiemcilroy ac08897
remove logging
richiemcilroy 1773135
back to 30fps
richiemcilroy 34e8b5f
Add WebGPU renderer support to frame worker
richiemcilroy 12f42d8
coderabbit bits
richiemcilroy b8cccd5
coderabbit bits
richiemcilroy d53791c
clippy
richiemcilroy 36631c6
clippy
richiemcilroy 7b34a39
clippy
richiemcilroy 5f23cbe
clippy
richiemcilroy d7e5d91
Add tray mode selection and dynamic tray icons
richiemcilroy 1d18b15
Add CycleRecordingMode hotkey action
richiemcilroy 6272334
Redesign mode select UI and update window sizing
richiemcilroy 5ca9fbc
Add 'cycleRecordingMode' hotkey to settings
richiemcilroy 4534dd8
clippy
richiemcilroy 7a66fac
clippy
richiemcilroy 33625f0
Add zero-copy Metal IOSurface NV12 support on macOS
richiemcilroy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: CapSoftware/Cap
Length of output: 1378
🏁 Script executed:
Repository: CapSoftware/Cap
Length of output: 41
🏁 Script executed:
Repository: CapSoftware/Cap
Length of output: 7470
🌐 Web query:
vite-plugin-wasm 3.4.1 compatibility Vite 6💡 Result:
Yes — vite-plugin-wasm (including v3.4.1) is compatible with Vite 6. The plugin's README and package pages state it supports Vite 2.x through 6.x. [1][2]
Sources:
[1] vite-plugin-wasm README (GitHub).
[2] npm/jsDelivr package pages for vite-plugin-wasm.
🌐 Web query:
vite-plugin-top-level-await 1.4.4 Vite 6 compatibility💡 Result:
Short answer: Not reliably. There’s a reported regression where vite v6.0.7 breaks vite-plugin-top-level-await@1.4.4 (works on 6.0.6 but fails on 6.0.7). [1][2]
Actions:
Sources:
Upgrade
vite-plugin-top-level-awaitto 1.6.0+ or pin Vite to 6.0.6.A critical compatibility regression exists:
vite-plugin-top-level-await@1.4.4breaks on Vite 6.0.7 and later versions (including the current 6.3.5). Either upgrade the plugin to 1.6.0+ indevDependenciesor constrain Vite to^6.0.6. Thevite-plugin-wasm@3.4.1is confirmed compatible with Vite 6.3.5; plugin order is correct.🤖 Prompt for AI Agents