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
auto_uv_worker: frame limit scales like timeLimit() (parallel ctest, CI)
islandmed6b809b845326
diff --git a/src/app/UiTest.cpp b/src/app/UiTest.cppindex 74d47dab..2ad453a8 100644--- a/src/app/UiTest.cpp+++ b/src/app/UiTest.cpp@@ -148,6 +148,7 @@// layer_channel_<id> (1 when the active texture layer has channel <id> on, e.g. roughness)// auto_uv_running, qremesh_running (QRemesh working in the background),// longest_frame_ms (the longest real time between two frames since the last read; resets),+// time_limit_scale (timeLimit()'s factor: 4 on CI or in a parallel ctest, else 1),// voxel_remesh_running, quick_remesh / remesh_after_stroke (Tool > Remesh, #121), stroke_stretched,// qremesh_guides (guide curves on the active Part), qremesh_guide_loops (closed ones),// guides_mode (1 while the QRemesh Guides brush is picked),@@ -570,6 +571,12 @@ double Demo::query(const std::string& name, bool& known) const {if (name == "active_texture_layer") return hasTexture(m) && !m.texture->layers.empty() ? double(m.texture->activeLayer) : -1.0;if (name == "auto_uv_running") return app_.autoUv_ ? 1.0 : 0.0;if (name == "longest_frame_ms") return std::exchange(longestFrameMs_, 0.0); // since the last read (it resets)+ if (name == "time_limit_scale") { // timeLimit()'s factor (tests/TestHarness.h): 4 on CI and in a parallel ctest+ if (const char* strict = std::getenv("SF_BENCH_LIMITS"); strict && std::string(strict) == "1") return 1.0;+ if (std::getenv("CI") || std::getenv("GITHUB_ACTIONS")) return 4.0;+ const char* scale = std::getenv("SF_TIME_LIMIT_SCALE");+ return std::max(1.0, scale ? std::atof(scale) : 1.0);+ }if (const double v = app_.bakeTestValue(name); !std::isnan(v)) return v;if (const double v = app_.uvEditorTestValue(name); !std::isnan(v)) return v;if (const double v = app_.pbrTestValue(name); !std::isnan(v)) return v; // material_channels, channel_view, ...diff --git a/tests/ui/auto_uv_worker.sfui b/tests/ui/auto_uv_worker.sfuiindex 4753857f..9aa048a0 100644--- a/tests/ui/auto_uv_worker.sfui+++ b/tests/ui/auto_uv_worker.sfui@@ -18,7 +18,9 @@ wait_value auto_uv_running == 0 1expect_value uvs == 0expect_status "cancelled"-# The command (a script line): frames keep drawing while it unwraps, and texture_create after it finds the UVs.+# The command (a script line): frames keep drawing while it unwraps (under 100 ms; CI and parallel ctest runs get+# timeLimit()'s slack), and texture_create after it finds the UVs.+remember time_limit_scale scalerun new_sphere subdivisions=5wait 0.3remember longest_frame_ms ignored@@ -27,7 +29,7 @@ expect_value uvs == 1expect_status "UV islands"run texture_create size=1024wait 0.3-expect_value longest_frame_ms < 100+expect_value longest_frame_ms < $scale*100expect_value texture_size == 1024# The console: the line's next statement waits for the worker too.@@ -42,7 +44,7 @@ key enterexpect_value auto_uv_running == 1wait_value auto_uv_running == 0 120wait_value texture_size == 1024 10-expect_value longest_frame_ms < 100+expect_value longest_frame_ms < $scale*100expect_text "UV islands"expect_text "New 1K texture"wait 0.2