Skip to content

frontend: title version defines only on the widgets build group (#2182) - #2193

Merged
zackees merged 2 commits into
masterfrom
perf/2182-frontend-describe-scope
Oct 24, 2026
Merged

zackees merged 2 commits into
masterfrom
perf/2182-frontend-describe-scope

Conversation

@zackees

@zackees zackees commented Oct 24, 2026

Copy link
Copy Markdown
Member

Refs #2182

The AppImage compiler journal (#2190) showed 88 of 90 warm-cache misses as context_not_found, almost all frontend compilations. Their command line carried -DOBS_RUST_GIT_DESCRIBE="obs-studio-rust-v0.1.0-beta.20261023-206-gfe3501119" (git describe --long, set target-wide in frontend/CMakeLists.txt by #1985). That changes on every commit, so every commit recompiled the whole frontend in every cached build: AppImage, Flatpak and the native lanes.

Only frontend/widgets/OBSBasic.cpp.hpp reads it (and its release twin OBS_RUST_TITLE_RELEASE), through the build group build/frontend.widgets+.hpp.cpp. Both are now source properties of that group (set_property(SOURCE … APPEND PROPERTY COMPILE_DEFINITIONS …), as feature-sparkle.cmake does for its group), so a new commit recompiles that one translation unit.

@zackees

zackees commented Oct 24, 2026

Copy link
Copy Markdown
Member Author

Title check: AppImage run 40116909149 on this branch built; its test jobs are skipped for branch dispatches, so I checked the artifact directly. usr/bin/obs-studio-rust-gui in the extracted AppImage contains obs-studio-rust-v0.1.0-beta.20261023-208-g5f2d25ebf, this branch's describe string, so OBS_RUST_GIT_DESCRIBE still reaches OBSBasic.cpp.hpp through the widgets group.

Merged via the queue into master with commit ba2b84d Oct 24, 2026
34 checks passed
@zackees
zackees deleted the perf/2182-frontend-describe-scope branch October 26, 2026 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant