Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

Merge remote-tracking branch 'origin/main' into cursor/gpui-default-cap-classic-a7f3

Cursor Agentbdcca422b298
diff --cc apps/desktop-gpui/Cargo.lock
index f4a70965f,ecfb0d213..22f6c278a
--- a/apps/desktop-gpui/Cargo.lock
+++ b/apps/desktop-gpui/Cargo.lock
@@@ -1562,8 -1563,6 +1563,7 @@@ dependencies =
"jpeg-decoder",
"kameo",
"libc",
- "md-5",
+ "minisign-verify",
"objc2 0.5.2",
"objc2-app-kit 0.2.2",
"objc2-foundation 0.2.2",
diff --cc apps/desktop-gpui/Cargo.toml
index e867c1c01,0da906e7a..59a9262a8
--- a/apps/desktop-gpui/Cargo.toml
+++ b/apps/desktop-gpui/Cargo.toml
@@@ -23,8 -22,18 +23,9 @@@ path = "src/main.rs
name = "studio-finalization-benchmark"
path = "../../crates/recording/examples/studio-finalization-benchmark.rs"
-[package.metadata.bundle]
-name = "Cap GPUI"
-identifier = "so.cap.desktop.gpui"
-icon = ["assets/dock-icon.png"]
-category = "public.app-category.productivity"
-osx_minimum_system_version = "12.3"
-osx_info_plist_exts = ["resources/Info.plist"]
-osx_url_schemes = ["cap-desktop"]
-
[dependencies]
cap-audio = { path = "../../crates/audio" }
+ cap-gpui-kernels = { path = "kernels" }
# gpui — the wingleeio/zed fork Comet ships. The pinned rev carries f596cde
# ("destination alpha on transparent windows: Porter-Duff OVER, not additive"),
# which our transparent rounded main-window shell depends on.
@@@ -258,18 -264,17 +258,18 @@@ incremental = fals
[profile.dev.package."*"]
opt-level = 2
+ # Full debug info for every dependency made a 1 GB Windows PDB that every
+ # relink rewrote; line tables keep file:line backtraces through dependencies.
+ debug = "line-tables-only"
- # ...and the app crate too, since the editor landed. `frame_image` un-pads and
- # BGRA-swaps a 1080x702 frame per displayed frame, which is 3MB of per-pixel
- # work on this side of the seam: at opt-level 0 it measures **30.1ms** and the
- # preview is convert-bound at 33fps with 45% of the renderer's frames dropped;
- # at opt-level 2 it is **0.92ms**, and playback holds 59.9fps with zero drops.
- # A dev build that cannot show the editor at its real speed is a dev build that
- # will get the wrong answer out of every later editor unit. Costs ~7s a build.
- [profile.dev.package.cap-desktop-gpui]
- opt-level = 2
+ # The app crate stays at opt-level 0; its per-frame pixel and sample loops live
+ # in `cap-gpui-kernels` instead. `frame_image` alone measures 42.7ms per frame
+ # unoptimized against 1.0ms here, and optimizing the whole app crate instead
+ # turns a one-line edit into a 6-minute rebuild.
+ [profile.dev.package.cap-gpui-kernels]
+ opt-level = 3
[profile.release]
+codegen-units = 1
lto = "thin"
strip = "symbols"