Skip to main content

UI timing recorder (experimental)

In the add-on preferences, enable Experimental Features to reveal Record UI Timing. Both switches default to off. Enable recording, then work normally. To investigate the first action after startup, save preferences and restart Blender. Disabling Experimental Features also stops recording.

Open Timing Logs opens the local folder containing one directory per recording session. Nothing is uploaded automatically. Logs include the loaded file path.

Records cover entry into AC9 operations, callback names, wall duration, process CPU duration, the next 3D draw callback, event-loop gaps of at least 0.5 seconds, and file-load boundaries. A separate observer attempts a Python stack sample after a two-second gap. The solver lifecycle log location is included for correlation.

The same switch turns on two related logs, written only while it is on and into the same session directory as the timing log, so Open Timing Logs shows everything to send:

  • clicks.log: one line per 3D click of an AC9 tool (what it landed on, the object names involved, the selection before and after, and the result).
  • lifecycle/: one file per solver process with its start, preparation, run and stop steps, process ids and result folder paths. A solver process started while the switch was off keeps writing nothing.

When the add-on starts, session directories last changed more than 7 days ago are deleted. Earlier versions wrote the click log and the solver lifecycle log to the system temporary folder (ac9_cloth_sim_clicks.log, ac9_cloth_sim_lifecycle) at all times; those are deleted by the same 7-day rule.

On Windows, enabling recording also starts an owned process that samples local drive counters about every 0.5 seconds, independently of Blender's GIL. It records read/write totals, non-idle fraction and queue depth for the code, Python, log and loaded-file drives, plus Blender process CPU/I/O and system CPU counters. Process I/O spans all devices and does not attribute physical disk traffic to an AI or a particular drive.

The same session contains disk_*.jsonl with wall and monotonic timestamps for correlation with the stalled interval. Counters taken after a stall are not treated as counters during it. The helper stops when recording is disabled or Blender exits, with a 12-hour ceiling. Unavailable drive counters are retained as errors.

Operation starts are flushed before the callback runs, so an unfinished start can survive a process crash. Complete recovery after forced termination or OS failure is not guaranteed. Four files rotate within each session, retaining approximately 32 MiB. Session directories older than 7 days are deleted when the add-on starts.

Disk samples rotate separately in two files retaining approximately 8 MiB. Reattached observers use distinct names to preserve earlier samples.

Entry time is not the physical mouse timestamp. A draw receipt is a 3D draw callback, not completed monitor presentation. A stall that prevents Python from running also prevents a contemporaneous stack sample; a recovered gap or the last start record may be the only evidence. Startup before add-on registration, other add-ons' internal timings, and native-code causes are outside this recorder's attribution.

Recording observes callbacks without changing patterns, garment geometry, or solver settings. Turn it off when the investigation is finished.