mirror of
https://github.com/Toastconcern/FrameStudio.git
synced 2026-10-29 00:02:23 +01:00
Frame Studio - Gaussian splats (PLY, SPZ v2-v4), PLY vertex colours, panorama skies - Copy, cut, paste and duplicate for objects, splats and world items - Walkable-area rebake moved off the UI thread; viewport one frame sooner; refresh-locked pacing (FS_PACE=timer for the old one) - Fixed: bundle thumbnail use-after-free crash, auto-save deleting environments, saves into scratch copies, edits lost on non-ASCII paths, unopenable manifests with inf/nan, bundle save data loss, opening a home marking it changed, gizmo NaN, long paths, many malformed-file crashes - Updater verifies sha256, journals the swap and never leaves the exe missing Frame Home - Seats turn you to face their way - Draw batching (Hand Tutorials up to ~20% less GPU time), cut-out EQUAL pass, late head-pose read before submit - Proper queue-family hand-over to the compositor layer; layer descriptor generations and seqlocked slots; structural SPIR-V check - Fixed: hangs/crashes on damaged .fenv files and shaders, render-pass validation error, sync hazard in the foveation smoothing pass, unverified update downloads, half-done installs Tests: tests_loco/env_share/spv_check wired into CMake (FRAME_TESTS) and CI. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VsaXGU27gsrXjDoFtyFJP9
33 lines
2.2 KiB
CMake
33 lines
2.2 KiB
CMake
# FRAME_VERSION: what the apps show as their version, the same name the release gets (.github/workflows/build.yml):
|
|
# "v" + VERSION (major.minor) + "." + the commits since VERSION last changed, so the commit that bumps VERSION is
|
|
# v<major.minor>.0. $FRAME_VERSION overrides it. Without the whole history (a shallow checkout, a copy that isn't a
|
|
# git repository) the count is unknown: "v0.2 (local)"; VERSION edited but not committed yet counts from 0.
|
|
file(READ "${CMAKE_CURRENT_LIST_DIR}/../VERSION" FRAME_VERSION_BASE)
|
|
string(STRIP "${FRAME_VERSION_BASE}" FRAME_VERSION_BASE)
|
|
set(FRAME_VERSION "$ENV{FRAME_VERSION}")
|
|
if(NOT FRAME_VERSION)
|
|
set(FRAME_VERSION "v${FRAME_VERSION_BASE} (local)")
|
|
set(FRAME_SRC "${CMAKE_CURRENT_LIST_DIR}/..")
|
|
find_package(Git QUIET)
|
|
if(GIT_FOUND)
|
|
execute_process(COMMAND "${GIT_EXECUTABLE}" rev-parse --is-shallow-repository WORKING_DIRECTORY "${FRAME_SRC}"
|
|
OUTPUT_VARIABLE FRAME_SHALLOW RESULT_VARIABLE FRAME_GIT_RC OUTPUT_STRIP_TRAILING_WHITESPACE ERROR_QUIET)
|
|
if(FRAME_GIT_RC EQUAL 0 AND FRAME_SHALLOW STREQUAL "false")
|
|
execute_process(COMMAND "${GIT_EXECUTABLE}" diff --quiet HEAD -- VERSION WORKING_DIRECTORY "${FRAME_SRC}"
|
|
RESULT_VARIABLE FRAME_VERSION_EDITED ERROR_QUIET)
|
|
execute_process(COMMAND "${GIT_EXECUTABLE}" log -1 --format=%H -- VERSION WORKING_DIRECTORY "${FRAME_SRC}"
|
|
OUTPUT_VARIABLE FRAME_BUMP RESULT_VARIABLE FRAME_GIT_RC OUTPUT_STRIP_TRAILING_WHITESPACE ERROR_QUIET)
|
|
if(FRAME_VERSION_EDITED EQUAL 1)
|
|
set(FRAME_VERSION "v${FRAME_VERSION_BASE}.0 (local)")
|
|
elseif(FRAME_GIT_RC EQUAL 0 AND FRAME_BUMP)
|
|
execute_process(COMMAND "${GIT_EXECUTABLE}" rev-list --count "${FRAME_BUMP}..HEAD" WORKING_DIRECTORY "${FRAME_SRC}"
|
|
OUTPUT_VARIABLE FRAME_COMMITS RESULT_VARIABLE FRAME_GIT_RC OUTPUT_STRIP_TRAILING_WHITESPACE ERROR_QUIET)
|
|
if(FRAME_GIT_RC EQUAL 0 AND FRAME_COMMITS MATCHES "^[0-9]+$")
|
|
set(FRAME_VERSION "v${FRAME_VERSION_BASE}.${FRAME_COMMITS}")
|
|
endif()
|
|
endif()
|
|
endif()
|
|
endif()
|
|
endif()
|
|
message(STATUS "Version: ${FRAME_VERSION}")
|