Skip to content

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.

Orbit start no longer hitches on slow cores: motion proxy batches sized to the frame budget, stale proxies rebuilt on still frames after a stroke

islandmed85f618a79ebf
diff --git a/bench/floor/m1pro-proxyfix-std15m-floor-ecores.json b/bench/floor/m1pro-proxyfix-std15m-floor-ecores.json
new file mode 100644
index 00000000..a348a334
--- /dev/null
+++ b/bench/floor/m1pro-proxyfix-std15m-floor-ecores.json
@@ -0,0 +1,610 @@
+{
+ "schema": "sculptforge-benchmark/1",
+ "sculptforge": {
+ "version": "0.10.11",
+ "commit": "2dd3fa06"
+ },
+ "date": "2026-11-04T12:27:09Z",
+ "hardware": {
+ "cpu": "Apple MacBook Pro (16-inch, M1 Pro, 2021)",
+ "logical_cores": 10,
+ "ram_gb": 30.9,
+ "os": "Arch Linux ARM (Linux 7.1.13-3-1-ARCH aarch64)",
+ "gpu": "Apple M1 Pro (G13S C0), OpenGL 4.6 (Core Profile) Mesa 26.1.8",
+ "framebuffer": [
+ 3408,
+ 2136
+ ],
+ "ui_scale": 1
+ },
+ "settings": {
+ "vsync": false,
+ "video": false,
+ "pointer_hz": 240,
+ "stroke_seconds": 6,
+ "scene": "standard-15m",
+ "stroke_set": "standard/1",
+ "input": "scripted pointer samples into App::onMouseMove (the mouse / pen handler)",
+ "lag": "pointer sample time to SwapWindow of the frame showing its dab (display scan-out not included)"
+ },
+ "runs": [
+ {
+ "label": "15M",
+ "triangles": 15052800,
+ "vertices": 7526402,
+ "build_seconds": 6,
+ "ram_mb": 2430,
+ "peak_ram_mb": 2430,
+ "gpu_buffers_mb": 209,
+ "worst_stall_ms": 172.1,
+ "phases": [
+ {
+ "name": "clay small",
+ "brush": "Clay",
+ "brush_radius_px": 25,
+ "worst_stall_ms": 34,
+ "seconds": 6,
+ "frames": 494,
+ "fps": 82.3,
+ "frame_ms": {
+ "p50": 9.15,
+ "p95": 26.53,
+ "p99": 30.18,
+ "max": 34.03,
+ "mean": 12.15
+ },
+ "frame_split_ms": {
+ "events": {
+ "p50": 0.03,
+ "p95": 0.07,
+ "p99": 0.28,
+ "max": 1.44,
+ "mean": 0.05
+ },
+ "sculpt": {
+ "p50": 0.12,
+ "p95": 15.37,
+ "p99": 18.6,
+ "max": 20.01,
+ "mean": 3.24
+ },
+ "ui": {
+ "p50": 0.51,
+ "p95": 0.65,
+ "p99": 1.18,
+ "max": 11.64,
+ "mean": 0.55
+ },
+ "upload": {
+ "p50": 0.01,
+ "p95": 0.01,
+ "p99": 0.02,
+ "max": 4.93,
+ "mean": 0.02
+ },
+ "draw": {
+ "p50": 0.87,
+ "p95": 1.45,
+ "p99": 3.43,
+ "max": 6.21,
+ "mean": 0.96
+ },
+ "swap_wait": {
+ "p50": 6.96,
+ "p95": 11.54,
+ "p99": 15.32,
+ "max": 24.03,
+ "mean": 7.34
+ }
+ },
+ "lag_ms": {
+ "p50": 15.85,
+ "p95": 94.84,
+ "p99": 109.57,
+ "max": 117.96,
+ "mean": 31.51
+ },
+ "lag_px": {
+ "p50": 9.78,
+ "p95": 74.03,
+ "p99": 88.25,
+ "max": 100.14,
+ "mean": 22.28
+ },
+ "dabs": 711,
+ "pointer_samples": 1440,
+ "path_px": 4563,
+ "release_ms": 0,
+ "release_done_ms": 116.4,
+ "preview_lag_px": {
+ "p50": 9.78,
+ "p95": 74.03,
+ "p99": 88.25,
+ "max": 100.14,
+ "mean": 22.28
+ },
+ "pointer_speed_px_s": 760
+ },
+ {
+ "name": "clay medium",
+ "brush": "Clay",
+ "brush_radius_px": 60,
+ "worst_stall_ms": 58.2,
+ "seconds": 6.01,
+ "frames": 343,
+ "fps": 57,
+ "frame_ms": {
+ "p50": 16,
+ "p95": 31.69,
+ "p99": 38.94,
+ "max": 58.21,
+ "mean": 17.53
+ },
+ "frame_split_ms": {
+ "events": {
+ "p50": 0.03,
+ "p95": 0.51,
+ "p99": 3.8,
+ "max": 8.18,
+ "mean": 0.19
+ },
+ "sculpt": {
+ "p50": 0,
+ "p95": 15.73,
+ "p99": 18.45,
+ "max": 23.59,
+ "mean": 2.72
+ },
+ "ui": {
+ "p50": 0.5,
+ "p95": 0.58,
+ "p99": 2.05,
+ "max": 13.75,
+ "mean": 0.58
+ },
+ "upload": {
+ "p50": 0,
+ "p95": 0,
+ "p99": 0.01,
+ "max": 5.59,
+ "mean": 0.02
+ },
+ "draw": {
+ "p50": 0.86,
+ "p95": 0.97,
+ "p99": 3.88,
+ "max": 32.39,
+ "mean": 1.01
+ },
+ "swap_wait": {
+ "p50": 12.71,
+ "p95": 21.52,
+ "p99": 27.72,
+ "max": 51.5,
+ "mean": 13.06
+ }
+ },
+ "lag_ms": {
+ "p50": 193.14,
+ "p95": 369.89,
+ "p99": 446.39,
+ "max": 474.64,
+ "mean": 206.64
+ },
+ "lag_px": {
+ "p50": 129.31,
+ "p95": 302.58,
+ "p99": 386.42,
+ "max": 408.92,
+ "mean": 148.01
+ },
+ "dabs": 178,
+ "pointer_samples": 1443,
+ "path_px": 4563,
+ "release_ms": 0,
+ "release_done_ms": 713.8,
+ "preview_lag_px": {
+ "p50": 129.31,
+ "p95": 302.58,
+ "p99": 386.42,
+ "max": 408.92,
+ "mean": 148.01
+ },
+ "pointer_speed_px_s": 759
+ },
+ {
+ "name": "clay large",
+ "brush": "Clay",
+ "brush_radius_px": 120,
+ "worst_stall_ms": 172.1,
+ "seconds": 6.01,
+ "frames": 368,
+ "fps": 61.3,
+ "frame_ms": {
+ "p50": 14.2,
+ "p95": 28.15,
+ "p99": 44.08,
+ "max": 172.08,
+ "mean": 16.32
+ },
+ "frame_split_ms": {
+ "events": {
+ "p50": 0.03,
+ "p95": 0.06,
+ "p99": 3.87,
+ "max": 7.85,
+ "mean": 0.12
+ },
+ "sculpt": {
+ "p50": 0,
+ "p95": 2.26,
+ "p99": 19.9,
+ "max": 26.57,
+ "mean": 0.66
+ },
+ "ui": {
+ "p50": 0.59,
+ "p95": 1.49,
+ "p99": 6.36,
+ "max": 32.2,
+ "mean": 0.87
+ },
+ "upload": {
+ "p50": 0,
+ "p95": 0.01,
+ "p99": 0.02,
+ "max": 10.83,
+ "mean": 0.03
+ },
+ "draw": {
+ "p50": 0.85,
+ "p95": 2.33,
+ "p99": 17.35,
+ "max": 168.6,
+ "mean": 1.92
+ },
+ "swap_wait": {
+ "p50": 11.56,
+ "p95": 22.58,
+ "p99": 25.57,
+ "max": 40.99,
+ "mean": 12.78
+ }
+ },
+ "lag_ms": {
+ "p50": 178.46,
+ "p95": 1003.47,
+ "p99": 1099.48,
+ "max": 1117.98,
+ "mean": 339.66
+ },
+ "lag_px": {
+ "p50": 185.83,
+ "p95": 760.55,
+ "p99": 834.22,
+ "max": 860.83,
+ "mean": 256.1
+ },
+ "dabs": 128,
+ "pointer_samples": 1441,
+ "path_px": 4563,
+ "release_ms": 0,
+ "release_done_ms": 1337.9,
+ "preview_lag_px": {
+ "p50": 185.83,
+ "p95": 760.55,
+ "p99": 834.22,
+ "max": 860.83,
+ "mean": 256.1
+ },
+ "pointer_speed_px_s": 760
+ },
+ {
+ "name": "move",
+ "brush": "Move",
+ "brush_radius_px": 80,
+ "worst_stall_ms": 70.9,
+ "seconds": 6.03,
+ "frames": 124,
+ "fps": 20.5,
+ "frame_ms": {
+ "p50": 48.21,
+ "p95": 51.89,
+ "p99": 64.85,
+ "max": 70.85,
+ "mean": 48.67
+ },
+ "frame_split_ms": {
+ "events": {
+ "p50": 0.03,
+ "p95": 0.04,
+ "p99": 0.06,
+ "max": 0.08,
+ "mean": 0.03
+ },
+ "sculpt": {
+ "p50": 8.1,
+ "p95": 8.36,
+ "p99": 16.21,
+ "max": 108.86,
+ "mean": 9.04
+ },
+ "ui": {
+ "p50": 1.1,
+ "p95": 1.28,
+ "p99": 1.32,
+ "max": 31.76,
+ "mean": 1.37
+ },
+ "upload": {
+ "p50": 14.86,
+ "p95": 15.19,
+ "p99": 21.58,
+ "max": 101.95,
+ "mean": 15.51
+ },
+ "draw": {
+ "p50": 0.92,
+ "p95": 0.94,
+ "p99": 0.95,
+ "max": 2.29,
+ "mean": 0.93
+ },
+ "swap_wait": {
+ "p50": 23.07,
+ "p95": 27.4,
+ "p99": 37.21,
+ "max": 37.35,
+ "mean": 23.51
+ }
+ },
+ "dabs": 0,
+ "pointer_samples": 1448,
+ "path_px": 2341,
+ "release_ms": 8.1,
+ "release_done_ms": 43,
+ "preview_lag_px": {
+ "p50": 0,
+ "p95": 0,
+ "p99": 0,
+ "max": 0,
+ "mean": 0
+ },
+ "pointer_speed_px_s": 388
+ },
+ {
+ "name": "smooth",
+ "brush": "Smooth",
+ "brush_radius_px": 60,
+ "worst_stall_ms": 42,
+ "seconds": 6.01,
+ "frames": 402,
+ "fps": 66.9,
+ "frame_ms": {
+ "p50": 12.72,
+ "p95": 30.42,
+ "p99": 38.79,
+ "max": 42,
+ "mean": 14.94
+ },
+ "frame_split_ms": {
+ "events": {
+ "p50": 0.03,
+ "p95": 0.05,
+ "p99": 0.74,
+ "max": 6.96,
+ "mean": 0.08
+ },
+ "sculpt": {
+ "p50": 0.1,
+ "p95": 15,
+ "p99": 19.63,
+ "max": 20.98,
+ "mean": 1.52
+ },
+ "ui": {
+ "p50": 0.6,
+ "p95": 1.48,
+ "p99": 2.83,
+ "max": 8.28,
+ "mean": 0.74
+ },
+ "upload": {
+ "p50": 0,
+ "p95": 0.01,
+ "p99": 0.01,
+ "max": 21.4,
+ "mean": 0.06
+ },
+ "draw": {
+ "p50": 0.87,
+ "p95": 2.28,
+ "p99": 5.77,
+ "max": 23.06,
+ "mean": 1.22
+ },
+ "swap_wait": {
+ "p50": 9.76,
+ "p95": 20.05,
+ "p99": 23.29,
+ "max": 28.32,
+ "mean": 11.36
+ }
+ },
+ "lag_ms": {
+ "p50": 42.67,
+ "p95": 312.18,
+ "p99": 519.96,
+ "max": 565.7,
+ "mean": 99.46
+ },
+ "lag_px": {
+ "p50": 36.7,
+ "p95": 351.81,
+ "p99": 558.95,
+ "max": 590.92,
+ "mean": 101.17
+ },
+ "dabs": 300,
+ "pointer_samples": 1441,
+ "path_px": 5853,
+ "release_ms": 0,
+ "release_done_ms": 279.5,
+ "preview_lag_px": {
+ "p50": 36.7,
+ "p95": 351.81,
+ "p99": 558.95,
+ "max": 590.92,
+ "mean": 101.17
+ },
+ "pointer_speed_px_s": 974
+ },
+ {
+ "name": "240 px brush",
+ "brush": "Clay",
+ "brush_radius_px": 240,
+ "worst_stall_ms": 51.7,
+ "seconds": 6,
+ "frames": 289,
+ "fps": 48.2,
+ "frame_ms": {
+ "p50": 20.87,
+ "p95": 29,
+ "p99": 44.14,
+ "max": 51.75,
+ "mean": 20.77
+ },
+ "frame_split_ms": {
+ "events": {
+ "p50": 0.03,
+ "p95": 0.04,
+ "p99": 0.08,
+ "max": 3.88,
+ "mean": 0.06
+ },
+ "sculpt": {
+ "p50": 0,
+ "p95": 0,
+ "p99": 22.85,
+ "max": 25.78,
+ "mean": 0.38
+ },
+ "ui": {
+ "p50": 0.57,
+ "p95": 0.62,
+ "p99": 3.62,
+ "max": 21.03,
+ "mean": 0.68
+ },
+ "upload": {
+ "p50": 0,
+ "p95": 0,
+ "p99": 0,
+ "max": 6.24,
+ "mean": 0.02
+ },
+ "draw": {
+ "p50": 0.88,
+ "p95": 0.96,
+ "p99": 5.9,
+ "max": 9.48,
+ "mean": 0.95
+ },
+ "swap_wait": {
+ "p50": 18.64,
+ "p95": 27.37,
+ "p99": 28.74,
+ "max": 31.52,
+ "mean": 18.78
+ }
+ },
+ "lag_ms": {
+ "p50": 1165.17,
+ "p95": 2582.04,
+ "p99": 2791.09,
+ "max": 2814.04,
+ "mean": 1263.99
+ },
+ "lag_px": {
+ "p50": 1130.65,
+ "p95": 2522.59,
+ "p99": 2677.07,
+ "max": 2697.39,
+ "mean": 1237.07
+ },
+ "dabs": 17,
+ "pointer_samples": 1440,
+ "path_px": 5853,
+ "release_ms": 0,
+ "release_done_ms": 4082.4,
+ "preview_lag_px": {
+ "p50": 1130.65,
+ "p95": 2522.59,
+ "p99": 2677.07,
+ "max": 2697.39,
+ "mean": 1237.07
+ },
+ "pointer_speed_px_s": 975
+ },
+ {
+ "name": "orbit",
+ "worst_stall_ms": 49.6,
+ "seconds": 3,
+ "frames": 267,
+ "fps": 89,
+ "frame_ms": {
+ "p50": 9.05,
+ "p95": 21.02,
+ "p99": 31.49,
+ "max": 49.55,
+ "mean": 11.24
+ },
+ "frame_split_ms": {
+ "events": {
+ "p50": 0.03,
+ "p95": 0.06,
+ "p99": 1.64,
+ "max": 3,
+ "mean": 0.07
+ },
+ "sculpt": {
+ "p50": 0,
+ "p95": 0,
+ "p99": 0,
+ "max": 396.95,
+ "mean": 1.49
+ },
+ "ui": {
+ "p50": 1.51,
+ "p95": 2.46,
+ "p99": 17.43,
+ "max": 53.81,
+ "mean": 2.02
+ },
+ "upload": {
+ "p50": 0.02,
+ "p95": 10.41,
+ "p99": 10.75,
+ "max": 314.63,
+ "mean": 3.43
+ },
+ "draw": {
+ "p50": 1.1,
+ "p95": 2.23,
+ "p99": 7.96,
+ "max": 9.28,
+ "mean": 1.43
+ },
+ "swap_wait": {
+ "p50": 5.83,
+ "p95": 9.28,
+ "p99": 13.73,
+ "max": 30.51,
+ "mean": 5.69
+ }
+ }
+ }
+ ]
+ }
+ ]
+}
diff --git a/bench/floor/m1pro-proxyfix-std15m-floor-ecores2.json b/bench/floor/m1pro-proxyfix-std15m-floor-ecores2.json
new file mode 100644
index 00000000..22079b61
--- /dev/null
+++ b/bench/floor/m1pro-proxyfix-std15m-floor-ecores2.json
@@ -0,0 +1,610 @@
+{
+ "schema": "sculptforge-benchmark/1",
+ "sculptforge": {
+ "version": "0.10.11",
+ "commit": "2dd3fa06"
+ },
+ "date": "2026-11-04T12:50:48Z",
+ "hardware": {
+ "cpu": "Apple MacBook Pro (16-inch, M1 Pro, 2021)",
+ "logical_cores": 10,
+ "ram_gb": 30.9,
+ "os": "Arch Linux ARM (Linux 7.1.13-3-1-ARCH aarch64)",
+ "gpu": "Apple M1 Pro (G13S C0), OpenGL 4.6 (Core Profile) Mesa 26.1.8",
+ "framebuffer": [
+ 3408,
+ 2136
+ ],
+ "ui_scale": 1
+ },
+ "settings": {
+ "vsync": false,
+ "video": false,
+ "pointer_hz": 240,
+ "stroke_seconds": 6,
+ "scene": "standard-15m",
+ "stroke_set": "standard/1",
+ "input": "scripted pointer samples into App::onMouseMove (the mouse / pen handler)",
+ "lag": "pointer sample time to SwapWindow of the frame showing its dab (display scan-out not included)"
+ },
+ "runs": [
+ {
+ "label": "15M",
+ "triangles": 15052800,
+ "vertices": 7526402,
+ "build_seconds": 5.91,
+ "ram_mb": 2550,
+ "peak_ram_mb": 2550,
+ "gpu_buffers_mb": 209,
+ "worst_stall_ms": 105.3,
+ "phases": [
+ {
+ "name": "clay small",
+ "brush": "Clay",
+ "brush_radius_px": 25,
+ "worst_stall_ms": 63.6,
+ "seconds": 6.01,
+ "frames": 444,
+ "fps": 73.9,
+ "frame_ms": {
+ "p50": 11.58,
+ "p95": 27.55,
+ "p99": 34.8,
+ "max": 63.63,
+ "mean": 13.53
+ },
+ "frame_split_ms": {
+ "events": {
+ "p50": 0.03,
+ "p95": 0.06,
+ "p99": 0.45,
+ "max": 1.76,
+ "mean": 0.05
+ },
+ "sculpt": {
+ "p50": 0.13,
+ "p95": 13.84,
+ "p99": 19.21,
+ "max": 40.54,
+ "mean": 1.97
+ },
+ "ui": {
+ "p50": 0.61,
+ "p95": 1.5,
+ "p99": 2.4,
+ "max": 11.26,
+ "mean": 0.78
+ },
+ "upload": {
+ "p50": 0.01,
+ "p95": 0.01,
+ "p99": 0.02,
+ "max": 7.73,
+ "mean": 0.03
+ },
+ "draw": {
+ "p50": 0.92,
+ "p95": 3.25,
+ "p99": 7.66,
+ "max": 53,
+ "mean": 1.49
+ },
+ "swap_wait": {
+ "p50": 8.52,
+ "p95": 13.66,
+ "p99": 20.35,
+ "max": 48.76,
+ "mean": 9.24
+ }
+ },
+ "lag_ms": {
+ "p50": 18.75,
+ "p95": 153.86,
+ "p99": 276.12,
+ "max": 313.6,
+ "mean": 44.14
+ },
+ "lag_px": {
+ "p50": 13.68,
+ "p95": 184.1,
+ "p99": 354.21,
+ "max": 397.27,
+ "mean": 46.1
+ },
+ "dabs": 964,
+ "pointer_samples": 1442,
+ "path_px": 5853,
+ "release_ms": 0,
+ "release_done_ms": 129.1,
+ "preview_lag_px": {
+ "p50": 13.68,
+ "p95": 184.1,
+ "p99": 354.21,
+ "max": 397.27,
+ "mean": 46.1
+ },
+ "pointer_speed_px_s": 974
+ },
+ {
+ "name": "clay medium",
+ "brush": "Clay",
+ "brush_radius_px": 60,
+ "worst_stall_ms": 49.9,
+ "seconds": 6.01,
+ "frames": 419,
+ "fps": 69.7,
+ "frame_ms": {
+ "p50": 11.76,
+ "p95": 29.56,
+ "p99": 39.98,
+ "max": 49.86,
+ "mean": 14.35
+ },
+ "frame_split_ms": {
+ "events": {
+ "p50": 0.03,
+ "p95": 0.05,
+ "p99": 0.91,
+ "max": 3.22,
+ "mean": 0.06
+ },
+ "sculpt": {
+ "p50": 0.08,
+ "p95": 12.95,
+ "p99": 17.49,
+ "max": 23.03,
+ "mean": 1.08
+ },
+ "ui": {
+ "p50": 0.58,
+ "p95": 1.06,
+ "p99": 1.54,
+ "max": 12.89,
+ "mean": 0.69
+ },
+ "upload": {
+ "p50": 0,
+ "p95": 0.01,
+ "p99": 0.02,
+ "max": 5.33,
+ "mean": 0.02
+ },
+ "draw": {
+ "p50": 0.85,
+ "p95": 1.85,
+ "p99": 6.42,
+ "max": 28.96,
+ "mean": 1.19
+ },
+ "swap_wait": {
+ "p50": 9.48,
+ "p95": 21.43,
+ "p99": 25.57,
+ "max": 46.25,
+ "mean": 11.33
+ }
+ },
+ "lag_ms": {
+ "p50": 25.82,
+ "p95": 488.13,
+ "p99": 722.35,
+ "max": 782.35,
+ "mean": 136.86
+ },
+ "lag_px": {
+ "p50": 21.3,
+ "p95": 537.54,
+ "p99": 747.67,
+ "max": 809.51,
+ "mean": 148.06
+ },
+ "dabs": 335,
+ "pointer_samples": 1443,
+ "path_px": 5853,
+ "release_ms": 0,
+ "release_done_ms": 686.6,
+ "preview_lag_px": {
+ "p50": 21.3,
+ "p95": 537.54,
+ "p99": 747.67,
+ "max": 809.51,
+ "mean": 148.06
+ },
+ "pointer_speed_px_s": 973
+ },
+ {
+ "name": "clay large",
+ "brush": "Clay",
+ "brush_radius_px": 120,
+ "worst_stall_ms": 52,
+ "seconds": 6.03,
+ "frames": 311,
+ "fps": 51.6,
+ "frame_ms": {
+ "p50": 18.36,
+ "p95": 30,
+ "p99": 39.13,
+ "max": 51.99,
+ "mean": 19.37
+ },
+ "frame_split_ms": {
+ "events": {
+ "p50": 0.03,
+ "p95": 0.03,
+ "p99": 0.05,
+ "max": 3.81,
+ "mean": 0.05
+ },
+ "sculpt": {
+ "p50": 0,
+ "p95": 0,
+ "p99": 18.02,
+ "max": 22.88,
+ "mean": 0.74
+ },
+ "ui": {
+ "p50": 0.57,
+ "p95": 0.63,
+ "p99": 0.8,
+ "max": 25.69,
+ "mean": 0.75
+ },
+ "upload": {
+ "p50": 0,
+ "p95": 0,
+ "p99": 0,
+ "max": 5.43,
+ "mean": 0.02
+ },
+ "draw": {
+ "p50": 0.84,
+ "p95": 0.92,
+ "p99": 1.08,
+ "max": 4.72,
+ "mean": 0.87
+ },
+ "swap_wait": {
+ "p50": 16.68,
+ "p95": 24.4,
+ "p99": 27.6,
+ "max": 28.59,
+ "mean": 17
+ }
+ },
+ "lag_ms": {
+ "p50": 720.17,
+ "p95": 1025.41,
+ "p99": 1209.35,
+ "max": 1255.68,
+ "mean": 702.05
+ },
+ "lag_px": {
+ "p50": 711.16,
+ "p95": 998.6,
+ "p99": 1133.3,
+ "max": 1181.83,
+ "mean": 684.43
+ },
+ "dabs": 52,
+ "pointer_samples": 1446,
+ "path_px": 5853,
+ "release_ms": 0,
+ "release_done_ms": 1897.8,
+ "preview_lag_px": {
+ "p50": 711.16,
+ "p95": 998.6,
+ "p99": 1133.3,
+ "max": 1181.83,
+ "mean": 684.43
+ },
+ "pointer_speed_px_s": 971
+ },
+ {
+ "name": "move",
+ "brush": "Move",
+ "brush_radius_px": 80,
+ "worst_stall_ms": 105.3,
+ "seconds": 6,
+ "frames": 84,
+ "fps": 14,
+ "frame_ms": {
+ "p50": 71.1,
+ "p95": 85.77,
+ "p99": 105.34,
+ "max": 105.34,
+ "mean": 71.44
+ },
+ "frame_split_ms": {
+ "events": {
+ "p50": 0.03,
+ "p95": 0.05,
+ "p99": 0.05,
+ "max": 0.05,
+ "mean": 0.03
+ },
+ "sculpt": {
+ "p50": 10.85,
+ "p95": 11.03,
+ "p99": 87.23,
+ "max": 87.23,
+ "mean": 11.76
+ },
+ "ui": {
+ "p50": 1.14,
+ "p95": 1.35,
+ "p99": 44.17,
+ "max": 44.17,
+ "mean": 1.67
+ },
+ "upload": {
+ "p50": 19.46,
+ "p95": 20.14,
+ "p99": 73.9,
+ "max": 73.9,
+ "mean": 20.16
+ },
+ "draw": {
+ "p50": 0.94,
+ "p95": 0.97,
+ "p99": 14.5,
+ "max": 14.5,
+ "mean": 1.1
+ },
+ "swap_wait": {
+ "p50": 38.56,
+ "p95": 50.46,
+ "p99": 70.59,
+ "max": 70.59,
+ "mean": 38.78
+ }
+ },
+ "dabs": 0,
+ "pointer_samples": 1440,
+ "path_px": 2341,
+ "release_ms": 10.9,
+ "release_done_ms": 53,
+ "preview_lag_px": {
+ "p50": 0,
+ "p95": 0,
+ "p99": 0,
+ "max": 0,
+ "mean": 0
+ },
+ "pointer_speed_px_s": 390
+ },
+ {
+ "name": "smooth",
+ "brush": "Smooth",
+ "brush_radius_px": 60,
+ "worst_stall_ms": 50.4,
+ "seconds": 6,
+ "frames": 372,
+ "fps": 62,
+ "frame_ms": {
+ "p50": 14.28,
+ "p95": 33.23,
+ "p99": 41.93,
+ "max": 50.42,
+ "mean": 16.13
+ },
+ "frame_split_ms": {
+ "events": {
+ "p50": 0.03,
+ "p95": 0.06,
+ "p99": 0.28,
+ "max": 12.8,
+ "mean": 0.08
+ },
+ "sculpt": {
+ "p50": 0.1,
+ "p95": 14.91,
+ "p99": 21.04,
+ "max": 23.35,
+ "mean": 1.42
+ },
+ "ui": {
+ "p50": 0.6,
+ "p95": 1.49,
+ "p99": 1.66,
+ "max": 2.93,
+ "mean": 0.73
+ },
+ "upload": {
+ "p50": 0,
+ "p95": 0.01,
+ "p99": 0.02,
+ "max": 25.8,
+ "mean": 0.07
+ },
+ "draw": {
+ "p50": 0.9,
+ "p95": 3.12,
+ "p99": 11.13,
+ "max": 43.82,
+ "mean": 1.49
+ },
+ "swap_wait": {
+ "p50": 11.03,
+ "p95": 22.17,
+ "p99": 25.52,
+ "max": 47.89,
+ "mean": 12.37
+ }
+ },
+ "lag_ms": {
+ "p50": 51.99,
+ "p95": 409.94,
+ "p99": 502.82,
+ "max": 559.73,
+ "mean": 125.39
+ },
+ "lag_px": {
+ "p50": 45.91,
+ "p95": 484.79,
+ "p99": 549.52,
+ "max": 587.81,
+ "mean": 127.73
+ },
+ "dabs": 278,
+ "pointer_samples": 1440,
+ "path_px": 5853,
+ "release_ms": 0,
+ "release_done_ms": 310.1,
+ "preview_lag_px": {
+ "p50": 45.91,
+ "p95": 484.79,
+ "p99": 549.52,
+ "max": 587.81,
+ "mean": 127.73
+ },
+ "pointer_speed_px_s": 975
+ },
+ {
+ "name": "240 px brush",
+ "brush": "Clay",
+ "brush_radius_px": 240,
+ "worst_stall_ms": 52.1,
+ "seconds": 6.01,
+ "frames": 300,
+ "fps": 49.9,
+ "frame_ms": {
+ "p50": 18.09,
+ "p95": 28.9,
+ "p99": 46.78,
+ "max": 52.08,
+ "mean": 20.05
+ },
+ "frame_split_ms": {
+ "events": {
+ "p50": 0.03,
+ "p95": 0.04,
+ "p99": 3.84,
+ "max": 9.71,
+ "mean": 0.14
+ },
+ "sculpt": {
+ "p50": 0,
+ "p95": 0,
+ "p99": 21.91,
+ "max": 24.48,
+ "mean": 0.3
+ },
+ "ui": {
+ "p50": 0.56,
+ "p95": 0.61,
+ "p99": 0.66,
+ "max": 18.92,
+ "mean": 0.64
+ },
+ "upload": {
+ "p50": 0,
+ "p95": 0,
+ "p99": 0,
+ "max": 6.4,
+ "mean": 0.02
+ },
+ "draw": {
+ "p50": 0.87,
+ "p95": 0.96,
+ "p99": 6.89,
+ "max": 19.6,
+ "mean": 0.98
+ },
+ "swap_wait": {
+ "p50": 16.59,
+ "p95": 25.53,
+ "p99": 28.64,
+ "max": 45.56,
+ "mean": 18.02
+ }
+ },
+ "lag_ms": {
+ "p50": 1384.95,
+ "p95": 3069.6,
+ "p99": 3313.78,
+ "max": 3344.01,
+ "mean": 1416.12
+ },
+ "lag_px": {
+ "p50": 1355.56,
+ "p95": 3019.66,
+ "p99": 3241.43,
+ "max": 3261.73,
+ "mean": 1376.23
+ },
+ "dabs": 17,
+ "pointer_samples": 1443,
+ "path_px": 5853,
+ "release_ms": 0,
+ "release_done_ms": 3550.1,
+ "preview_lag_px": {
+ "p50": 1355.56,
+ "p95": 3019.66,
+ "p99": 3241.43,
+ "max": 3261.73,
+ "mean": 1376.23
+ },
+ "pointer_speed_px_s": 973
+ },
+ {
+ "name": "orbit",
+ "worst_stall_ms": 64.4,
+ "seconds": 3.01,
+ "frames": 270,
+ "fps": 89.8,
+ "frame_ms": {
+ "p50": 8.21,
+ "p95": 21.25,
+ "p99": 26.06,
+ "max": 64.35,
+ "mean": 11.14
+ },
+ "frame_split_ms": {
+ "events": {
+ "p50": 0.03,
+ "p95": 0.07,
+ "p99": 0.08,
+ "max": 0.08,
+ "mean": 0.04
+ },
+ "sculpt": {
+ "p50": 0,
+ "p95": 0,
+ "p99": 0,
+ "max": 494.95,
+ "mean": 1.83
+ },
+ "ui": {
+ "p50": 1.29,
+ "p95": 2.27,
+ "p99": 2.41,
+ "max": 51.53,
+ "mean": 1.6
+ },
+ "upload": {
+ "p50": 0.02,
+ "p95": 10.34,
+ "p99": 10.64,
+ "max": 398.02,
+ "mean": 3.7
+ },
+ "draw": {
+ "p50": 1.03,
+ "p95": 1.74,
+ "p99": 6.43,
+ "max": 17.69,
+ "mean": 1.26
+ },
+ "swap_wait": {
+ "p50": 5.38,
+ "p95": 12.13,
+ "p99": 23.06,
+ "max": 62.07,
+ "mean": 6.21
+ }
+ }
+ }
+ ]
+ }
+ ]
+}
diff --git a/bench/floor/m1pro-proxyfix-std15m-floor-pcores.json b/bench/floor/m1pro-proxyfix-std15m-floor-pcores.json
new file mode 100644
index 00000000..1eb56b6d
--- /dev/null
+++ b/bench/floor/m1pro-proxyfix-std15m-floor-pcores.json
@@ -0,0 +1,610 @@
+{
+ "schema": "sculptforge-benchmark/1",
+ "sculptforge": {
+ "version": "0.10.11",
+ "commit": "2dd3fa06"
+ },
+ "date": "2026-11-04T12:29:52Z",
+ "hardware": {
+ "cpu": "Apple MacBook Pro (16-inch, M1 Pro, 2021)",
+ "logical_cores": 10,
+ "ram_gb": 30.9,
+ "os": "Arch Linux ARM (Linux 7.1.13-3-1-ARCH aarch64)",
+ "gpu": "Apple M1 Pro (G13S C0), OpenGL 4.6 (Core Profile) Mesa 26.1.8",
+ "framebuffer": [
+ 1690,
+ 2136
+ ],
+ "ui_scale": 1
+ },
+ "settings": {
+ "vsync": false,
+ "video": false,
+ "pointer_hz": 240,
+ "stroke_seconds": 6,
+ "scene": "standard-15m",
+ "stroke_set": "standard/1",
+ "input": "scripted pointer samples into App::onMouseMove (the mouse / pen handler)",
+ "lag": "pointer sample time to SwapWindow of the frame showing its dab (display scan-out not included)"
+ },
+ "runs": [
+ {
+ "label": "15M",
+ "triangles": 15052800,
+ "vertices": 7526402,
+ "build_seconds": 1.68,
+ "ram_mb": 2447,
+ "peak_ram_mb": 2447,
+ "gpu_buffers_mb": 209,
+ "worst_stall_ms": 45.3,
+ "phases": [
+ {
+ "name": "clay small",
+ "brush": "Clay",
+ "brush_radius_px": 25,
+ "worst_stall_ms": 27.7,
+ "seconds": 6.01,
+ "frames": 591,
+ "fps": 98.3,
+ "frame_ms": {
+ "p50": 7.68,
+ "p95": 22.4,
+ "p99": 25.17,
+ "max": 27.72,
+ "mean": 10.17
+ },
+ "frame_split_ms": {
+ "events": {
+ "p50": 0.02,
+ "p95": 0.04,
+ "p99": 0.5,
+ "max": 2.99,
+ "mean": 0.04
+ },
+ "sculpt": {
+ "p50": 0.07,
+ "p95": 12.75,
+ "p99": 14.21,
+ "max": 19.24,
+ "mean": 2.96
+ },
+ "ui": {
+ "p50": 0.23,
+ "p95": 0.55,
+ "p99": 0.8,
+ "max": 1.45,
+ "mean": 0.28
+ },
+ "upload": {
+ "p50": 0,
+ "p95": 0.01,
+ "p99": 0.01,
+ "max": 0.01,
+ "mean": 0
+ },
+ "draw": {
+ "p50": 0.34,
+ "p95": 1.17,
+ "p99": 2.12,
+ "max": 3.84,
+ "mean": 0.48
+ },
+ "swap_wait": {
+ "p50": 5.85,
+ "p95": 10.65,
+ "p99": 12.61,
+ "max": 16.04,
+ "mean": 6.38
+ }
+ },
+ "lag_ms": {
+ "p50": 14.2,
+ "p95": 83.89,
+ "p99": 100.05,
+ "max": 111.88,
+ "mean": 28.02
+ },
+ "lag_px": {
+ "p50": 8.29,
+ "p95": 62.63,
+ "p99": 80.07,
+ "max": 91.79,
+ "mean": 20.38
+ },
+ "dabs": 1001,
+ "pointer_samples": 1442,
+ "path_px": 4563,
+ "release_ms": 0,
+ "release_done_ms": 56.7,
+ "preview_lag_px": {
+ "p50": 8.29,
+ "p95": 62.63,
+ "p99": 80.07,
+ "max": 91.79,
+ "mean": 20.38
+ },
+ "pointer_speed_px_s": 759
+ },
+ {
+ "name": "clay medium",
+ "brush": "Clay",
+ "brush_radius_px": 60,
+ "worst_stall_ms": 29.5,
+ "seconds": 6.01,
+ "frames": 345,
+ "fps": 57.4,
+ "frame_ms": {
+ "p50": 19.13,
+ "p95": 25.98,
+ "p99": 28.5,
+ "max": 29.48,
+ "mean": 17.43
+ },
+ "frame_split_ms": {
+ "events": {
+ "p50": 0.02,
+ "p95": 0.09,
+ "p99": 1.81,
+ "max": 5.34,
+ "mean": 0.08
+ },
+ "sculpt": {
+ "p50": 12.21,
+ "p95": 14.69,
+ "p99": 16.31,
+ "max": 17.11,
+ "mean": 8.3
+ },
+ "ui": {
+ "p50": 0.25,
+ "p95": 0.58,
+ "p99": 1.21,
+ "max": 6.62,
+ "mean": 0.35
+ },
+ "upload": {
+ "p50": 0,
+ "p95": 0.01,
+ "p99": 0.01,
+ "max": 4.39,
+ "mean": 0.02
+ },
+ "draw": {
+ "p50": 0.37,
+ "p95": 1.06,
+ "p99": 2.05,
+ "max": 4.01,
+ "mean": 0.54
+ },
+ "swap_wait": {
+ "p50": 8.07,
+ "p95": 12.57,
+ "p99": 14.92,
+ "max": 15.57,
+ "mean": 8.15
+ }
+ },
+ "lag_ms": {
+ "p50": 75.68,
+ "p95": 130.12,
+ "p99": 154.97,
+ "max": 185.25,
+ "mean": 73.92
+ },
+ "lag_px": {
+ "p50": 50.4,
+ "p95": 92.71,
+ "p99": 119.44,
+ "max": 131.12,
+ "mean": 51.79
+ },
+ "dabs": 424,
+ "pointer_samples": 1443,
+ "path_px": 4563,
+ "release_ms": 0,
+ "release_done_ms": 113.1,
+ "preview_lag_px": {
+ "p50": 50.4,
+ "p95": 92.71,
+ "p99": 119.44,
+ "max": 131.12,
+ "mean": 51.79
+ },
+ "pointer_speed_px_s": 759
+ },
+ {
+ "name": "clay large",
+ "brush": "Clay",
+ "brush_radius_px": 120,
+ "worst_stall_ms": 42,
+ "seconds": 6.01,
+ "frames": 436,
+ "fps": 72.5,
+ "frame_ms": {
+ "p50": 11.3,
+ "p95": 27.25,
+ "p99": 31.24,
+ "max": 41.98,
+ "mean": 13.79
+ },
+ "frame_split_ms": {
+ "events": {
+ "p50": 0.03,
+ "p95": 0.07,
+ "p99": 1.75,
+ "max": 5.66,
+ "mean": 0.08
+ },
+ "sculpt": {
+ "p50": 0,
+ "p95": 14.15,
+ "p99": 15.59,
+ "max": 18.71,
+ "mean": 3.44
+ },
+ "ui": {
+ "p50": 0.34,
+ "p95": 1.5,
+ "p99": 3.13,
+ "max": 16.72,
+ "mean": 0.61
+ },
+ "upload": {
+ "p50": 0,
+ "p95": 0.01,
+ "p99": 0.02,
+ "max": 4.76,
+ "mean": 0.02
+ },
+ "draw": {
+ "p50": 0.76,
+ "p95": 2.49,
+ "p99": 4.12,
+ "max": 31.81,
+ "mean": 0.99
+ },
+ "swap_wait": {
+ "p50": 8.54,
+ "p95": 12.93,
+ "p99": 16.04,
+ "max": 52.86,
+ "mean": 8.67
+ }
+ },
+ "lag_ms": {
+ "p50": 67.82,
+ "p95": 175.77,
+ "p99": 201.06,
+ "max": 216.03,
+ "mean": 79.11
+ },
+ "lag_px": {
+ "p50": 52.89,
+ "p95": 118.59,
+ "p99": 137.28,
+ "max": 156.43,
+ "mean": 54.7
+ },
+ "dabs": 252,
+ "pointer_samples": 1442,
+ "path_px": 4563,
+ "release_ms": 0,
+ "release_done_ms": 152.8,
+ "preview_lag_px": {
+ "p50": 52.89,
+ "p95": 118.59,
+ "p99": 137.28,
+ "max": 156.43,
+ "mean": 54.7
+ },
+ "pointer_speed_px_s": 759
+ },
+ {
+ "name": "move",
+ "brush": "Move",
+ "brush_radius_px": 80,
+ "worst_stall_ms": 32.7,
+ "seconds": 6.02,
+ "frames": 329,
+ "fps": 54.6,
+ "frame_ms": {
+ "p50": 18.11,
+ "p95": 23.37,
+ "p99": 28.52,
+ "max": 32.66,
+ "mean": 18.3
+ },
+ "frame_split_ms": {
+ "events": {
+ "p50": 0.03,
+ "p95": 0.05,
+ "p99": 0.05,
+ "max": 0.21,
+ "mean": 0.03
+ },
+ "sculpt": {
+ "p50": 1.65,
+ "p95": 2.84,
+ "p99": 4.57,
+ "max": 7.57,
+ "mean": 1.78
+ },
+ "ui": {
+ "p50": 1.1,
+ "p95": 1.65,
+ "p99": 2.29,
+ "max": 20.48,
+ "mean": 1.14
+ },
+ "upload": {
+ "p50": 2.57,
+ "p95": 4.39,
+ "p99": 5.1,
+ "max": 15.1,
+ "mean": 2.72
+ },
+ "draw": {
+ "p50": 0.81,
+ "p95": 1.19,
+ "p99": 1.5,
+ "max": 2.36,
+ "mean": 0.72
+ },
+ "swap_wait": {
+ "p50": 11.75,
+ "p95": 15.62,
+ "p99": 20.56,
+ "max": 30.8,
+ "mean": 12
+ }
+ },
+ "dabs": 0,
+ "pointer_samples": 1444,
+ "path_px": 2341,
+ "release_ms": 3.2,
+ "release_done_ms": 30,
+ "preview_lag_px": {
+ "p50": 0,
+ "p95": 0,
+ "p99": 0,
+ "max": 0,
+ "mean": 0
+ },
+ "pointer_speed_px_s": 389
+ },
+ {
+ "name": "smooth",
+ "brush": "Smooth",
+ "brush_radius_px": 60,
+ "worst_stall_ms": 36.1,
+ "seconds": 6.01,
+ "frames": 275,
+ "fps": 45.8,
+ "frame_ms": {
+ "p50": 23.58,
+ "p95": 28.08,
+ "p99": 31.47,
+ "max": 36.06,
+ "mean": 21.85
+ },
+ "frame_split_ms": {
+ "events": {
+ "p50": 0.03,
+ "p95": 0.06,
+ "p99": 0.21,
+ "max": 0.24,
+ "mean": 0.04
+ },
+ "sculpt": {
+ "p50": 12.74,
+ "p95": 13.94,
+ "p99": 15.36,
+ "max": 15.58,
+ "mean": 10.05
+ },
+ "ui": {
+ "p50": 0.62,
+ "p95": 1.52,
+ "p99": 2.57,
+ "max": 9.21,
+ "mean": 0.67
+ },
+ "upload": {
+ "p50": 0,
+ "p95": 0.01,
+ "p99": 0.02,
+ "max": 13.28,
+ "mean": 0.05
+ },
+ "draw": {
+ "p50": 0.9,
+ "p95": 2.45,
+ "p99": 5.16,
+ "max": 12.16,
+ "mean": 1.02
+ },
+ "swap_wait": {
+ "p50": 9.97,
+ "p95": 13.51,
+ "p99": 17.09,
+ "max": 21.62,
+ "mean": 10.05
+ }
+ },
+ "lag_ms": {
+ "p50": 80.33,
+ "p95": 108.17,
+ "p99": 115.2,
+ "max": 121.6,
+ "mean": 76.17
+ },
+ "lag_px": {
+ "p50": 71.07,
+ "p95": 108.77,
+ "p99": 117.17,
+ "max": 123.66,
+ "mean": 71.88
+ },
+ "dabs": 424,
+ "pointer_samples": 1441,
+ "path_px": 5853,
+ "release_ms": 0,
+ "release_done_ms": 92.3,
+ "preview_lag_px": {
+ "p50": 71.07,
+ "p95": 108.77,
+ "p99": 117.17,
+ "max": 123.66,
+ "mean": 71.88
+ },
+ "pointer_speed_px_s": 974
+ },
+ {
+ "name": "240 px brush",
+ "brush": "Clay",
+ "brush_radius_px": 240,
+ "worst_stall_ms": 45.3,
+ "seconds": 6,
+ "frames": 379,
+ "fps": 63.1,
+ "frame_ms": {
+ "p50": 11.77,
+ "p95": 28.24,
+ "p99": 37.96,
+ "max": 45.32,
+ "mean": 15.84
+ },
+ "frame_split_ms": {
+ "events": {
+ "p50": 0.02,
+ "p95": 0.05,
+ "p99": 0.07,
+ "max": 1.43,
+ "mean": 0.03
+ },
+ "sculpt": {
+ "p50": 0,
+ "p95": 14.2,
+ "p99": 15.52,
+ "max": 16.79,
+ "mean": 4.88
+ },
+ "ui": {
+ "p50": 0.3,
+ "p95": 1.08,
+ "p99": 2.14,
+ "max": 35.4,
+ "mean": 0.57
+ },
+ "upload": {
+ "p50": 0,
+ "p95": 0.01,
+ "p99": 0.02,
+ "max": 4.08,
+ "mean": 0.01
+ },
+ "draw": {
+ "p50": 0.44,
+ "p95": 2.16,
+ "p99": 3.77,
+ "max": 7.31,
+ "mean": 0.83
+ },
+ "swap_wait": {
+ "p50": 9.23,
+ "p95": 12.97,
+ "p99": 24.23,
+ "max": 41.54,
+ "mean": 9.61
+ }
+ },
+ "lag_ms": {
+ "p50": 95.16,
+ "p95": 227.75,
+ "p99": 268.93,
+ "max": 285.52,
+ "mean": 107.02
+ },
+ "lag_px": {
+ "p50": 79.56,
+ "p95": 194.3,
+ "p99": 248.67,
+ "max": 257.43,
+ "mean": 93.53
+ },
+ "dabs": 163,
+ "pointer_samples": 1441,
+ "path_px": 5853,
+ "release_ms": 0,
+ "release_done_ms": 219.6,
+ "preview_lag_px": {
+ "p50": 79.56,
+ "p95": 194.3,
+ "p99": 248.67,
+ "max": 257.43,
+ "mean": 93.53
+ },
+ "pointer_speed_px_s": 975
+ },
+ {
+ "name": "orbit",
+ "worst_stall_ms": 41.6,
+ "seconds": 3,
+ "frames": 316,
+ "fps": 105.2,
+ "frame_ms": {
+ "p50": 8.8,
+ "p95": 14.51,
+ "p99": 31.03,
+ "max": 41.62,
+ "mean": 9.51
+ },
+ "frame_split_ms": {
+ "events": {
+ "p50": 0.03,
+ "p95": 0.04,
+ "p99": 0.06,
+ "max": 18.36,
+ "mean": 0.09
+ },
+ "sculpt": {
+ "p50": 0,
+ "p95": 0,
+ "p99": 0,
+ "max": 11.53,
+ "mean": 0.04
+ },
+ "ui": {
+ "p50": 1.99,
+ "p95": 2.67,
+ "p99": 6.29,
+ "max": 57.75,
+ "mean": 2.27
+ },
+ "upload": {
+ "p50": 0.02,
+ "p95": 0.03,
+ "p99": 8.19,
+ "max": 8.35,
+ "mean": 0.26
+ },
+ "draw": {
+ "p50": 1.56,
+ "p95": 2.41,
+ "p99": 7.12,
+ "max": 22.71,
+ "mean": 1.63
+ },
+ "swap_wait": {
+ "p50": 5.52,
+ "p95": 7.06,
+ "p99": 10.84,
+ "max": 30.77,
+ "mean": 5.44
+ }
+ }
+ }
+ ]
+ }
+ ]
+}
diff --git a/bench/floor/m1pro-proxyfix-std15m-floor-pcores2.json b/bench/floor/m1pro-proxyfix-std15m-floor-pcores2.json
new file mode 100644
index 00000000..1a42ffeb
--- /dev/null
+++ b/bench/floor/m1pro-proxyfix-std15m-floor-pcores2.json
@@ -0,0 +1,610 @@
+{
+ "schema": "sculptforge-benchmark/1",
+ "sculptforge": {
+ "version": "0.10.11",
+ "commit": "2dd3fa06"
+ },
+ "date": "2026-11-04T13:02:32Z",
+ "hardware": {
+ "cpu": "Apple MacBook Pro (16-inch, M1 Pro, 2021)",
+ "logical_cores": 10,
+ "ram_gb": 30.9,
+ "os": "Arch Linux ARM (Linux 7.1.13-3-1-ARCH aarch64)",
+ "gpu": "Apple M1 Pro (G13S C0), OpenGL 4.6 (Core Profile) Mesa 26.1.8",
+ "framebuffer": [
+ 3408,
+ 2136
+ ],
+ "ui_scale": 1
+ },
+ "settings": {
+ "vsync": false,
+ "video": false,
+ "pointer_hz": 240,
+ "stroke_seconds": 6,
+ "scene": "standard-15m",
+ "stroke_set": "standard/1",
+ "input": "scripted pointer samples into App::onMouseMove (the mouse / pen handler)",
+ "lag": "pointer sample time to SwapWindow of the frame showing its dab (display scan-out not included)"
+ },
+ "runs": [
+ {
+ "label": "15M",
+ "triangles": 15052800,
+ "vertices": 7526402,
+ "build_seconds": 1.4,
+ "ram_mb": 2410,
+ "peak_ram_mb": 2410,
+ "gpu_buffers_mb": 209,
+ "worst_stall_ms": 59.6,
+ "phases": [
+ {
+ "name": "clay small",
+ "brush": "Clay",
+ "brush_radius_px": 25,
+ "worst_stall_ms": 59.6,
+ "seconds": 6.01,
+ "frames": 403,
+ "fps": 67,
+ "frame_ms": {
+ "p50": 12.28,
+ "p95": 27.08,
+ "p99": 38.26,
+ "max": 59.59,
+ "mean": 14.92
+ },
+ "frame_split_ms": {
+ "events": {
+ "p50": 0.04,
+ "p95": 0.1,
+ "p99": 2.21,
+ "max": 4.32,
+ "mean": 0.09
+ },
+ "sculpt": {
+ "p50": 0.19,
+ "p95": 12.98,
+ "p99": 14.32,
+ "max": 27.78,
+ "mean": 3.06
+ },
+ "ui": {
+ "p50": 0.68,
+ "p95": 1.57,
+ "p99": 2.73,
+ "max": 8.93,
+ "mean": 0.87
+ },
+ "upload": {
+ "p50": 0.01,
+ "p95": 0.01,
+ "p99": 0.02,
+ "max": 0.11,
+ "mean": 0.01
+ },
+ "draw": {
+ "p50": 1.14,
+ "p95": 3.18,
+ "p99": 6.75,
+ "max": 53.47,
+ "mean": 1.67
+ },
+ "swap_wait": {
+ "p50": 8.39,
+ "p95": 12.86,
+ "p99": 24.59,
+ "max": 48.98,
+ "mean": 9.19
+ }
+ },
+ "lag_ms": {
+ "p50": 18.66,
+ "p95": 104.55,
+ "p99": 126.16,
+ "max": 146.62,
+ "mean": 36.39
+ },
+ "lag_px": {
+ "p50": 13.69,
+ "p95": 121.18,
+ "p99": 158.36,
+ "max": 200.35,
+ "mean": 36.83
+ },
+ "dabs": 1226,
+ "pointer_samples": 1442,
+ "path_px": 5853,
+ "release_ms": 0,
+ "release_done_ms": 89,
+ "preview_lag_px": {
+ "p50": 13.69,
+ "p95": 121.18,
+ "p99": 158.36,
+ "max": 200.35,
+ "mean": 36.83
+ },
+ "pointer_speed_px_s": 974
+ },
+ {
+ "name": "clay medium",
+ "brush": "Clay",
+ "brush_radius_px": 60,
+ "worst_stall_ms": 43.1,
+ "seconds": 6,
+ "frames": 398,
+ "fps": 66.3,
+ "frame_ms": {
+ "p50": 12.94,
+ "p95": 27.39,
+ "p99": 34.08,
+ "max": 43.06,
+ "mean": 15.08
+ },
+ "frame_split_ms": {
+ "events": {
+ "p50": 0.04,
+ "p95": 0.07,
+ "p99": 0.63,
+ "max": 2.19,
+ "mean": 0.05
+ },
+ "sculpt": {
+ "p50": 0.26,
+ "p95": 13.44,
+ "p99": 15.4,
+ "max": 19.81,
+ "mean": 3.57
+ },
+ "ui": {
+ "p50": 0.68,
+ "p95": 1.56,
+ "p99": 3.28,
+ "max": 17.1,
+ "mean": 0.85
+ },
+ "upload": {
+ "p50": 0.01,
+ "p95": 0.01,
+ "p99": 0.02,
+ "max": 4.29,
+ "mean": 0.02
+ },
+ "draw": {
+ "p50": 1.15,
+ "p95": 2.89,
+ "p99": 6.17,
+ "max": 11.33,
+ "mean": 1.38
+ },
+ "swap_wait": {
+ "p50": 8.76,
+ "p95": 13.3,
+ "p99": 25.56,
+ "max": 45.63,
+ "mean": 9.3
+ }
+ },
+ "lag_ms": {
+ "p50": 23.08,
+ "p95": 82.41,
+ "p99": 106.99,
+ "max": 121.87,
+ "mean": 32.96
+ },
+ "lag_px": {
+ "p50": 17.81,
+ "p95": 90.85,
+ "p99": 115.79,
+ "max": 124.38,
+ "mean": 30.66
+ },
+ "dabs": 643,
+ "pointer_samples": 1440,
+ "path_px": 5853,
+ "release_ms": 0,
+ "release_done_ms": 112,
+ "preview_lag_px": {
+ "p50": 17.81,
+ "p95": 90.85,
+ "p99": 115.79,
+ "max": 124.38,
+ "mean": 30.66
+ },
+ "pointer_speed_px_s": 975
+ },
+ {
+ "name": "clay large",
+ "brush": "Clay",
+ "brush_radius_px": 120,
+ "worst_stall_ms": 45.8,
+ "seconds": 6.02,
+ "frames": 272,
+ "fps": 45.2,
+ "frame_ms": {
+ "p50": 24.18,
+ "p95": 30.04,
+ "p99": 33.38,
+ "max": 45.75,
+ "mean": 22.12
+ },
+ "frame_split_ms": {
+ "events": {
+ "p50": 0.02,
+ "p95": 0.06,
+ "p99": 0.08,
+ "max": 0.13,
+ "mean": 0.03
+ },
+ "sculpt": {
+ "p50": 13.07,
+ "p95": 15.22,
+ "p99": 16.04,
+ "max": 16.45,
+ "mean": 10.17
+ },
+ "ui": {
+ "p50": 0.57,
+ "p95": 1.59,
+ "p99": 1.92,
+ "max": 27.49,
+ "mean": 0.68
+ },
+ "upload": {
+ "p50": 0,
+ "p95": 0.01,
+ "p99": 0.02,
+ "max": 5.54,
+ "mean": 0.02
+ },
+ "draw": {
+ "p50": 0.84,
+ "p95": 2.47,
+ "p99": 4.24,
+ "max": 6.81,
+ "mean": 0.92
+ },
+ "swap_wait": {
+ "p50": 10.23,
+ "p95": 14.05,
+ "p99": 17.05,
+ "max": 28.94,
+ "mean": 10.38
+ }
+ },
+ "lag_ms": {
+ "p50": 66.09,
+ "p95": 90.57,
+ "p99": 106.88,
+ "max": 123.13,
+ "mean": 63.3
+ },
+ "lag_px": {
+ "p50": 56.77,
+ "p95": 91.7,
+ "p99": 107.33,
+ "max": 131.07,
+ "mean": 58.4
+ },
+ "dabs": 326,
+ "pointer_samples": 1443,
+ "path_px": 5853,
+ "release_ms": 0,
+ "release_done_ms": 131.9,
+ "preview_lag_px": {
+ "p50": 56.77,
+ "p95": 91.7,
+ "p99": 107.33,
+ "max": 131.07,
+ "mean": 58.4
+ },
+ "pointer_speed_px_s": 973
+ },
+ {
+ "name": "move",
+ "brush": "Move",
+ "brush_radius_px": 80,
+ "worst_stall_ms": 46.1,
+ "seconds": 6,
+ "frames": 284,
+ "fps": 47.3,
+ "frame_ms": {
+ "p50": 20.91,
+ "p95": 29.52,
+ "p99": 39.97,
+ "max": 46.12,
+ "mean": 21.13
+ },
+ "frame_split_ms": {
+ "events": {
+ "p50": 0.03,
+ "p95": 0.04,
+ "p99": 0.06,
+ "max": 6.25,
+ "mean": 0.05
+ },
+ "sculpt": {
+ "p50": 2.02,
+ "p95": 3.2,
+ "p99": 7.34,
+ "max": 19.4,
+ "mean": 2.15
+ },
+ "ui": {
+ "p50": 1.19,
+ "p95": 1.65,
+ "p99": 2.93,
+ "max": 23.83,
+ "mean": 1.27
+ },
+ "upload": {
+ "p50": 3.23,
+ "p95": 4.94,
+ "p99": 14.49,
+ "max": 18.9,
+ "mean": 3.47
+ },
+ "draw": {
+ "p50": 0.92,
+ "p95": 1.27,
+ "p99": 2.71,
+ "max": 5.06,
+ "mean": 0.86
+ },
+ "swap_wait": {
+ "p50": 13.05,
+ "p95": 17.83,
+ "p99": 26.23,
+ "max": 41.56,
+ "mean": 13.41
+ }
+ },
+ "dabs": 0,
+ "pointer_samples": 1440,
+ "path_px": 2341,
+ "release_ms": 2.7,
+ "release_done_ms": 25.9,
+ "preview_lag_px": {
+ "p50": 0,
+ "p95": 0,
+ "p99": 0,
+ "max": 0,
+ "mean": 0
+ },
+ "pointer_speed_px_s": 390
+ },
+ {
+ "name": "smooth",
+ "brush": "Smooth",
+ "brush_radius_px": 60,
+ "worst_stall_ms": 47.5,
+ "seconds": 6.02,
+ "frames": 255,
+ "fps": 42.4,
+ "frame_ms": {
+ "p50": 24.15,
+ "p95": 30.17,
+ "p99": 38.18,
+ "max": 47.52,
+ "mean": 23.59
+ },
+ "frame_split_ms": {
+ "events": {
+ "p50": 0.03,
+ "p95": 0.06,
+ "p99": 1.74,
+ "max": 2.72,
+ "mean": 0.06
+ },
+ "sculpt": {
+ "p50": 12.6,
+ "p95": 14.28,
+ "p99": 15.55,
+ "max": 20.68,
+ "mean": 10.92
+ },
+ "ui": {
+ "p50": 0.56,
+ "p95": 1.09,
+ "p99": 1.65,
+ "max": 2.7,
+ "mean": 0.56
+ },
+ "upload": {
+ "p50": 0,
+ "p95": 0.01,
+ "p99": 0.02,
+ "max": 10.33,
+ "mean": 0.04
+ },
+ "draw": {
+ "p50": 0.93,
+ "p95": 2.44,
+ "p99": 3.88,
+ "max": 23.5,
+ "mean": 1.03
+ },
+ "swap_wait": {
+ "p50": 10.46,
+ "p95": 15.34,
+ "p99": 24.7,
+ "max": 30.71,
+ "mean": 10.99
+ }
+ },
+ "lag_ms": {
+ "p50": 80.52,
+ "p95": 121.25,
+ "p99": 131.64,
+ "max": 137.86,
+ "mean": 81.45
+ },
+ "lag_px": {
+ "p50": 70.67,
+ "p95": 115.71,
+ "p99": 129.45,
+ "max": 133.86,
+ "mean": 75.26
+ },
+ "dabs": 326,
+ "pointer_samples": 1443,
+ "path_px": 5853,
+ "release_ms": 0,
+ "release_done_ms": 70.7,
+ "preview_lag_px": {
+ "p50": 70.67,
+ "p95": 115.71,
+ "p99": 129.45,
+ "max": 133.86,
+ "mean": 75.26
+ },
+ "pointer_speed_px_s": 973
+ },
+ {
+ "name": "240 px brush",
+ "brush": "Clay",
+ "brush_radius_px": 240,
+ "worst_stall_ms": 58.1,
+ "seconds": 6.01,
+ "frames": 351,
+ "fps": 58.4,
+ "frame_ms": {
+ "p50": 13.11,
+ "p95": 29.56,
+ "p99": 36.14,
+ "max": 58.1,
+ "mean": 17.12
+ },
+ "frame_split_ms": {
+ "events": {
+ "p50": 0.02,
+ "p95": 0.05,
+ "p99": 0.15,
+ "max": 1.7,
+ "mean": 0.03
+ },
+ "sculpt": {
+ "p50": 0.33,
+ "p95": 14.55,
+ "p99": 16.23,
+ "max": 17.27,
+ "mean": 5.47
+ },
+ "ui": {
+ "p50": 0.45,
+ "p95": 1.59,
+ "p99": 3.61,
+ "max": 27.03,
+ "mean": 0.64
+ },
+ "upload": {
+ "p50": 0,
+ "p95": 0.01,
+ "p99": 0.02,
+ "max": 4.54,
+ "mean": 0.02
+ },
+ "draw": {
+ "p50": 0.87,
+ "p95": 2.93,
+ "p99": 7.36,
+ "max": 36.71,
+ "mean": 1.13
+ },
+ "swap_wait": {
+ "p50": 9.49,
+ "p95": 14.45,
+ "p99": 19.61,
+ "max": 40.34,
+ "mean": 9.92
+ }
+ },
+ "lag_ms": {
+ "p50": 90.49,
+ "p95": 164.44,
+ "p99": 187.26,
+ "max": 217.55,
+ "mean": 89.55
+ },
+ "lag_px": {
+ "p50": 72.87,
+ "p95": 143.17,
+ "p99": 163.86,
+ "max": 175.82,
+ "mean": 77.46
+ },
+ "dabs": 163,
+ "pointer_samples": 1441,
+ "path_px": 5853,
+ "release_ms": 0,
+ "release_done_ms": 187.1,
+ "preview_lag_px": {
+ "p50": 72.87,
+ "p95": 143.17,
+ "p99": 163.86,
+ "max": 175.82,
+ "mean": 77.46
+ },
+ "pointer_speed_px_s": 974
+ },
+ {
+ "name": "orbit",
+ "worst_stall_ms": 52.6,
+ "seconds": 3.01,
+ "frames": 313,
+ "fps": 104.1,
+ "frame_ms": {
+ "p50": 9.13,
+ "p95": 13.55,
+ "p99": 20.81,
+ "max": 52.64,
+ "mean": 9.6
+ },
+ "frame_split_ms": {
+ "events": {
+ "p50": 0.03,
+ "p95": 0.04,
+ "p99": 0.07,
+ "max": 0.46,
+ "mean": 0.03
+ },
+ "sculpt": {
+ "p50": 0,
+ "p95": 0,
+ "p99": 0,
+ "max": 6.72,
+ "mean": 0.02
+ },
+ "ui": {
+ "p50": 1.86,
+ "p95": 2.82,
+ "p99": 3.97,
+ "max": 45.14,
+ "mean": 2.12
+ },
+ "upload": {
+ "p50": 0.02,
+ "p95": 0.04,
+ "p99": 8.11,
+ "max": 8.22,
+ "mean": 0.25
+ },
+ "draw": {
+ "p50": 1.34,
+ "p95": 4.42,
+ "p99": 8.32,
+ "max": 10.79,
+ "mean": 1.68
+ },
+ "swap_wait": {
+ "p50": 5.94,
+ "p95": 7.98,
+ "p99": 9.74,
+ "max": 37.33,
+ "mean": 5.63
+ }
+ }
+ }
+ ]
+ }
+ ]
+}
diff --git a/changes/perf-moonshots.md b/changes/perf-moonshots.md
index 70dcb1be..c1897604 100644
--- a/changes/perf-moonshots.md
+++ b/changes/perf-moonshots.md
@@ -16,7 +16,15 @@ added: Experimental toggles in Preferences > Performance, all off by default. **
unchanged (`SF_BG_GHOST=0/1`). **Fast Upload**: stroke uploads are packed into persistently mapped staging
buffers (GL_ARB_buffer_storage) and copied on the GPU (`SF_PERSISTENT_UPLOAD=0/1`). The research behind them,
including a design for focus detail on billion-polygon assets, is in docs/design/perf-moonshots.md.
+fixed: Orbiting a dense model right after sculpting no longer hitches on slower processors. The lighter copy that is
+ drawn while the view moves was rebuilt in batches that a slow CPU took about 160 ms to finish, so the first frames of
+ the orbit froze. Batches are now sized to fit a few milliseconds a frame. After a stroke the copy is also brought up
+ to date while the view is still, so the next orbit starts with it ready (15M triangles, simulated integrated-graphics
+ profile on slow cores: worst orbit frame 166 -> 24 ms).
testers:
+ - Windows laptops with integrated graphics first, any OS: open a model of 10M+ triangles (or Help > Benchmark's
+ head), sculpt a long stroke, then orbit straight away. Good: the view turns smoothly from the first frame (no
+ freeze at the start of the orbit), and the model sharpens to full detail when you stop.
- Any OS, Live Move: Preferences > Performance > Live Move (Experimental) on. Open Help > Benchmark's dense
head, or any model over 10M triangles. Drag the Move brush big and fast. Good: the bulge follows the pen
smoothly with no stutter, and when you lift the pen the shape stays exactly where the preview left it (no jump
diff --git a/docs/design/perf-moonshots.md b/docs/design/perf-moonshots.md
index 85b72d42..a5974274 100644
--- a/docs/design/perf-moonshots.md
+++ b/docs/design/perf-moonshots.md
@@ -359,6 +359,21 @@ toggles, is the CPU:
These two are the floor's top problems: building the motion proxy ahead of the orbit and off the main thread, and
CPU dab throughput (Fast Big Brushes, core-200m N2). They come before anything that needs a faster GPU.
+**Fixed: the orbit-start hitch** (11-04). `SF_FRAME_LOG` + `SF_SYNC_LOG` on the E-cores showed three frames of 157-160 ms,
+all in `Renderer::buildProxies`. Its 8 ms budget was checked only after each fixed batch of 1024 clusters, and on two slow
+cores one batch took the whole 157 ms. Now each batch is sized from the measured cost per cluster to fit what is left
+of the frame's budget (16-1024 clusters). Still frames after a stroke also rebuild the stale proxies at 4 ms a frame
+(`Renderer::setProxyPrebuild`, only for meshes already orbited, never while sculpting), so the next orbit usually
+starts with them ready. Floor, standard-15m, orbit p50 / p95 / p99 / max (`bench/floor/m1pro-proxyfix-*`):
+
+| | before | after |
+|---|---|---|
+| E-cores | 8.6-8.7 / 16 / **165-166** / 170-174 ms | 8.2-9.1 / 21 / **26-31** / 50-64 ms |
+| P-cores | 9.0 / 12-14 / 26-27 / 36-42 ms | 8.8-9.1 / 14-15 / 21-31 / 42-53 ms |
+
+On the E-cores the floor's orbit now meets p99 < 33 ms. p95 rises a little because the build is spread over more
+frames. On the P-cores nothing changes beyond noise. One frame per orbit still reaches 50-64 ms; that's the next one to find.
+
The laptop profile shows the same pattern (240 px: 208 -> 6 px p50, frame p99 33 -> 16 ms; Smooth p99 36 -> 12 ms).
On the simulated floor tier (optimistic for CPU-bound work, §0), with the toggles on, every stroke phase's p99 frame meets the < 33 ms target (off: 4 of 6 miss) and
the stroke you see stays within a few pixels of the pen. The cost: the committed surface on a small brush lands
diff --git a/src/app/App.cpp b/src/app/App.cpp
index 13125f0d..237b63cc 100644
--- a/src/app/App.cpp
+++ b/src/app/App.cpp
@@ -637,7 +637,8 @@ bool App::wantsFrames(double now) const {
backgroundBusy() || playingLayer_ >= 0 || faceTakePlaying_ ||
timelapseBusy() || hardwareCalibrating() || // both render a step per frame: they stop when the frames do
spaceMouseMoving() || // a held SpaceMouse cap sends no events, but the view keeps moving (SpaceMouse.cpp)
- perf_.framesStill < 10; // the view just moved: Fast Navigation's full-quality frame comes after it stops
+ perf_.framesStill < 10 || // the view just moved: Fast Navigation's full-quality frame comes after it stops
+ (perf_.proxyPrebuild && renderer_.proxiesPending()); // motion proxies left to build, a few ms a frame
}
uint64_t App::frameKey() const {
@@ -979,6 +980,11 @@ int App::run() {
// thread owns the mesh
if (!solverBusy()) prewarmTexturePaint();
const auto syncStart = std::chrono::steady_clock::now();
+ // Still and not sculpting: bring the motion proxies a stroke made stale up to date, so the next orbit starts
+ // with them (on slow cores building them as the orbit starts hitched it).
+ perf_.proxyPrebuild = uiPrefs_.fastNavigation && !perf_.movingNow && !doc_.sculptor.strokeActive() &&
+ dabQueue_.empty() && !strokeFinishing_ && !solverBusy();
+ renderer_.setProxyPrebuild(perf_.proxyPrebuild);
syncScene();
mark();
notePerformanceFrame(std::chrono::duration<double, std::milli>(std::chrono::steady_clock::now() - syncStart).count());
diff --git a/src/app/App.h b/src/app/App.h
index 83fb9c5b..b5be4063 100644
--- a/src/app/App.h
+++ b/src/app/App.h
@@ -973,6 +973,7 @@ private:
glm::mat4 lastView{0.0f};
int framesStill = 0; // frames since the view last moved
bool fastNow = false; // this frame draws without antialiasing (fast navigation)
+ bool proxyPrebuild = false; // still frames build stale motion proxies (Renderer::setProxyPrebuild)
bool proxyNow = false; // this frame draws big meshes' motion proxy (fast navigation)
bool movingNow = false; // the view moved in the last few frames (the frame governor counts these)
size_t sceneTriangles = 0; // visible triangles in full detail, last frame
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp
index 7c6dc7fa..9e725dd9 100644
--- a/src/render/Renderer.cpp
+++ b/src/render/Renderer.cpp
@@ -1714,13 +1714,23 @@ void Renderer::buildProxies(MeshSlot& s, const Mesh& mesh) {
}
// A few milliseconds a frame: after a long stroke most of the front is stale, and building all of it in the first
// moving frame stalled the view (180-300 ms at 33M). Stale clusters draw in full detail until theirs is built.
- constexpr double kProxyBudgetMs = 8.0;
- constexpr size_t kProxyBatch = 1024; // clusters per parallel batch
+ // Batches are sized from the measured cost per cluster: a fixed 1024 took 157 ms a frame on two slow cores.
+ // Still frames (proxyPrebuild_) get less, as nothing waits for them.
+ const double budgetMs = proxyUsed_ ? 8.0 : 4.0;
+ constexpr size_t kProxyBatchMin = 16, kProxyBatchMax = 1024; // clusters per parallel batch
const auto start = std::chrono::steady_clock::now();
+ auto elapsedMs = [&] { return std::chrono::duration<double, std::milli>(std::chrono::steady_clock::now() - start).count(); };
std::vector<std::vector<uint16_t>> built;
gl::BindVertexArray(s.proxyVao);
for (size_t at = 0; at < cullScratch_.size();) {
- const size_t n = std::min(kProxyBatch, cullScratch_.size() - at);
+ const double left = budgetMs - elapsedMs();
+ if (at > 0 && left <= 0.0) {
+ proxyPending_ = true;
+ break;
+ }
+ const size_t fit = proxyMsPerCluster_ > 0.0 ? size_t(std::max(left, 0.0) / proxyMsPerCluster_) : 64;
+ const size_t n = std::min(std::clamp(fit, kProxyBatchMin, kProxyBatchMax), cullScratch_.size() - at);
+ const double batchStart = elapsedMs();
built.assign(n, {});
poolFor(n, [&](size_t i0, size_t i1) {
for (size_t i = i0; i < i1; ++i) {
@@ -1739,11 +1749,8 @@ void Renderer::buildProxies(MeshSlot& s, const Mesh& mesh) {
GLsizeiptr(built[i].size() * sizeof(uint16_t)), built[i].data());
}
at += n;
- if (at < cullScratch_.size() &&
- std::chrono::duration<double, std::milli>(std::chrono::steady_clock::now() - start).count() > kProxyBudgetMs) {
- proxyPending_ = true;
- break;
- }
+ const double perCluster = (elapsedMs() - batchStart) / double(n);
+ proxyMsPerCluster_ = proxyMsPerCluster_ > 0.0 ? 0.7 * proxyMsPerCluster_ + 0.3 * perCluster : perCluster;
}
gl::BindVertexArray(0);
}
@@ -2179,7 +2186,8 @@ void Renderer::sync(MeshSlot& s, Mesh& mesh, const NormalMapView* normalMap, boo
// Small meshes draw in full while the view moves too (their proxy would save little).
constexpr size_t kProxyMinTriangles = size_t(1) << 18;
if (syncLog) lapMs(lap);
- if (proxyUsed_ && !s.outOfMemory && s.drawnTriangles >= kProxyMinTriangles) buildProxies(s, mesh);
+ if ((proxyUsed_ || (proxyPrebuild_ && s.proxyAllocated)) && !s.outOfMemory && s.drawnTriangles >= kProxyMinTriangles)
+ buildProxies(s, mesh);
if (syncLog) proxyMs = lapMs(lap);
syncTexture(s, mesh, pbr);
syncNormalMap(s, mesh, normalMap);
diff --git a/src/render/Renderer.h b/src/render/Renderer.h
index 8ef00aa0..7611a713 100644
--- a/src/render/Renderer.h
+++ b/src/render/Renderer.h
@@ -239,6 +239,9 @@ public:
size_t lastDrawnTriangles() const { return lastDrawn_; }
// The last syncScene left motion proxies to build (a few milliseconds of them a frame; the rest draw in full).
bool proxiesPending() const { return proxyPending_; }
+ // Build stale motion proxies on still frames too (after a stroke, so the next orbit starts with them), at a
+ // smaller budget; only for meshes whose proxies were drawn before. The app turns it on when nothing sculpts.
+ void setProxyPrebuild(bool on) { proxyPrebuild_ = on; }
// Texture of matcap `index` (sRGB RGBA8, rows bottom-up) for UI previews; 0 if none (or a custom one not
// uploaded yet: the next syncScene or draw does).
@@ -391,6 +394,8 @@ private:
void buildProxies(MeshSlot& s, const Mesh& mesh);
bool proxyUsed_ = false; // the last draw() drew motion proxies: sync keeps them current
bool proxyPending_ = false; // (proxiesPending)
+ bool proxyPrebuild_ = false; // (setProxyPrebuild)
+ double proxyMsPerCluster_ = 0.0; // measured, so a frame's batches fit its budget on slow cores too
// The ghost (setGhost), drawn on the slot ghostId_.
GhostStroke ghost_;
uint32_t ghostId_ = 0;