Free, open-source 3D sculpting for Linux, macOS and Windows: dense meshes, remeshing, painting, built-in AI (image/text to 3D), Send to Unreal, game-ready LODs, Gaussian splats and OpenUSD.
C++ 3d3d-sculptingcppdear-imguidigital-sculptingfbxgame-developmentgaussian-splattinggltfimage-to-3dmcpopenglopenusdsculptingtext-to-3dunreal-engine
Tests: eight sculptforge_tests shards (more shards than CI's four cores balance better: Windows shards ran 90-161 s at four)
islandmeda918956c8f70
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex c921b845..88789358 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -70,7 +70,7 @@ All notable changes to SculptForge are listed here. The format followsthe shape counts as inside too, as with MaskRect and MaskLasso (`hide_rect` / `hide_lasso symmetry=x`).### Changed- CI is faster with the same tests: compiles go through ccache (saved only by pushes to main and maintainers' own- runs; pull requests only read it; release builds use no cache), `sculptforge_tests` runs as four parallel shards+ runs; pull requests only read it; release builds use no cache), `sculptforge_tests` runs as eight parallel shards(`sculptforge_tests --shard K/N`; every test still runs once, and each now prints its time), ctest runs testsin parallel (timed measurements alone), and the Windows build compiles one file per core. The Flatpak checkmoved to its own workflow that runs when the packaging, the build or the Flatpak-specific code changes, everydiff --git a/CMakeLists.txt b/CMakeLists.txtindex cf81601a..961b720a 100644--- a/CMakeLists.txt+++ b/CMakeLists.txt@@ -498,9 +498,10 @@ if(SCULPTFORGE_BUILD_TESTS)if(MSVC)target_compile_options(sculptforge_tests PRIVATE /utf-8)endif()- # The suite as SCULPTFORGE_TEST_SHARDS processes (sculptforge_tests_0of4 ...; `ctest -j` runs them at once, CI does),- # each with its own temporary folder so tests in different shards never share a scratch file.- set(SCULPTFORGE_TEST_SHARDS 4 CACHE STRING "Number of ctest entries the sculptforge_tests suite is split into")+ # The suite as SCULPTFORGE_TEST_SHARDS processes (sculptforge_tests_0of8 ...; `ctest -j` runs them at once, CI does;+ # more shards than cores balance better), each with its own temporary folder so tests in different shards never+ # share a scratch file.+ set(SCULPTFORGE_TEST_SHARDS 8 CACHE STRING "Number of ctest entries the sculptforge_tests suite is split into")math(EXPR last_shard "${SCULPTFORGE_TEST_SHARDS} - 1")foreach(k RANGE ${last_shard})set(shard_tmp ${CMAKE_CURRENT_BINARY_DIR}/test-tmp/shard${k})diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex 84c4d8f2..b764d695 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -31,8 +31,8 @@ trailing underscore for private members. A `.clang-format` is provided.See [README.md#building](README.md#building). On Linux, `packaging/linux/install-build-deps.sh` installs thebuild dependencies. `ctest` runs the unit tests; `cpack` in the build folder makes the platform's packages.-`ctest -j 4` runs them four at a time: the `sculptforge_tests` suite is registered as four shards-(`sculptforge_tests_0of4` ...), each with its own temporary folder. Run the binary itself for a quick check:+`ctest -j 4` runs them four at a time: the `sculptforge_tests` suite is registered as eight shards+(`sculptforge_tests_0of8` ...), each with its own temporary folder. Run the binary itself for a quick check:`./build/sculptforge_tests qremesh` runs the tests whose names contain "qremesh", `--shard 1/4` one shard, andeach test prints how long it took.Releases are built by `.github/workflows/release.yml` when a `v*` tag is pushed.diff --git a/tests/test_main.cpp b/tests/test_main.cppindex f6e122b0..e64ebcc8 100644--- a/tests/test_main.cpp+++ b/tests/test_main.cpp@@ -3,7 +3,7 @@//// Runs every TEST registered by the tests/test_*.cpp files (with arguments: only the tests whose names contain// one of them, e.g. `sculptforge_tests qremesh_guide`). `--shard K/N` runs only shard K (0-based) of N, so the-// suite can run as N processes at once (CMake registers sculptforge_tests_0of4 ... for ctest -j); every test is+// suite can run as N processes at once (CMake registers sculptforge_tests_0of8 ... for ctest -j); every test is// in exactly one shard (sf::test::inShard).#include "TestHarness.h"