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
Merge research/core-200m: benchmark scenes and research prototypes (all opt-in) for the perf scoreboard
islandmed8d89d61c0fd8
diff --cc src/app/AsyncStroke.cppindex c041167b,15b94c5a..ae0bbbca--- a/src/app/AsyncStroke.cpp+++ b/src/app/AsyncStroke.cpp@@@ -473,7 -434,8 +473,8 @@@ bool App::ghostSurface(const glm::vec3void App::buildGhost() {ghostHeadValid_ = false;+ renderer_.setScreenStroke(GhostStroke()); // (set again below when this frame's dabs draw on the screen)- const uint32_t id = doc_.activeSubtoolInfo().id;+ const uint32_t id = doc_.activePartInfo().id;if (liveMove_.active) { // Live Move: one "dab" per mirror, the whole move so farGhostStroke g;g.kind = GhostKind::Move;diff --cc src/render/Renderer.cppindex 546a9c2a,e5f60a5c..e376f2a3--- a/src/render/Renderer.cpp+++ b/src/render/Renderer.cpp@@@ -3073,10 -3067,12 +3089,12 @@@ void Renderer::drawMicro(const MeshSlotgl::Uniform1i(p->twoSided, 1);// Moving (Fast Navigation): a coarser target and half the budget, so orbiting stays smooth.const bool moving = settings.motionProxy;- const size_t full = settings.renderTriangleBudget ? settings.renderTriangleBudget : size_t(currentTierConfig().activeTriangleBudget);+ // The tier's budget, lowered by the governed one (core/HardwareProfile.h: the frame governor, SF_HW_SIMULATE=floor).+ size_t full = settings.renderTriangleBudget ? settings.renderTriangleBudget : size_t(currentTierConfig().activeTriangleBudget);+ if (const uint64_t governed = renderTriangleBudget(); governed > 0) full = std::min(full, size_t(governed));const size_t budget = moving ? full / 2 : full;const float target = settings.microTargetPx * (moving ? 2.0f : 1.0f);- // (the budget is shared by the micro SubTools on screen: each gets it whole; one is the usual case)+ // (the budget is shared by the micro Parts on screen: each gets it whole; one is the usual case)const_cast<MeshSlot&>(s).microDrawn = s.micro->draw(p->id, frameCull_, frameProj_, frameViewport_, budget, target);lastDrawn_ += s.microDrawn;}diff --cc src/render/Renderer.hindex 6b6aa3ac,01555dc5..f9bf17e9--- a/src/render/Renderer.h+++ b/src/render/Renderer.h@@@ -176,8 -177,13 +177,13 @@@ publicGLuint paintTexture(uint32_t id) const;// --- Strokes on heavy meshes (app/AsyncStroke.cpp) ---- // The predictive stroke preview (render/Ghost.h) drawn on SubTool `id`; an empty stroke turns it off.+ // The predictive stroke preview (render/Ghost.h) drawn on Part `id`; an empty stroke turns it off.void setGhost(uint32_t id, const GhostStroke& ghost);+ // Research (render/ScreenStroke.h, SF_SCREEN_STROKE=1): the same pending dabs applied to the drawn view instead+ // of the geometry (Lit Sphere views through drawView only); an empty stroke turns it off.+ void setScreenStroke(const GhostStroke& stroke) { screenStroke_ = stroke; }+ // The last drawView applied the screen stroke.+ bool screenStrokeDrawn() const { return screenStrokeDrawn_; }// A sculpt stroke's vertex upload made in two halves: prepareStrokeUpload packs what the mesh marked dirty// (positions and normals only) and the culling bounds of the clusters that moved, on any thread and without// GL, while the GL thread keeps drawing from what it has; commitStrokeUpload sends it on the GL thread.