﻿TMS PLANNER SCROLL REPRODUCTION - START HERE

Send TMS-Bugreport.txt and this source/data ZIP to TMS Support.
This package has been prepared locally; it has not been sent anywhere.

CONTENTS

TMS-Bugreport.txt       Ready-to-send English support report.
source/                Standalone Delphi VCL reproduction and helpers.
measurements/          Raw numeric data and summaries from distinct series.
VALIDATION.txt         Completed build/run/integrity checks.
SHA256SUMS.txt          Checksums for all other included files.

REQUIREMENTS

Windows, RAD Studio 13 / Delphi compiler 37.0, and licensed compiled TMS
VCL UI Pack Win64x Release DCUs and resource files. Tested with UI Pack
13.6.5.1 and 13.8.0.0. The package deliberately includes no TMS libraries.
Python 3 is required only for the OPTIONAL isolated-desktop launcher.

BUILD (POWERSHELL)

From the source directory, substitute the paths to your TMS installation:

  .\Build.ps1 -TmsLibDir 'C:\TMS\VCLUIPack\packages\d13\Win64x\Release'

The script looks upwards from TmsLibDir for Planner.res. If the resources
are located elsewhere, pass their directory explicitly:

  .\Build.ps1 -TmsLibDir 'C:\TMS\Win64x\Release' -TmsResourceDir 'C:\TMS\VCLUIPack'

The default compiler path is the standard Studio\37.0 installation.
If necessary pass -BdsRoot 'C:\YourRadStudio'. For multiple builds, use
-OutputName build-old and -OutputName build-new with the respective DCUs.

Build.ps1 calls MSBuild without opening the IDE. It reads existing TMS
DCUs/resources and compiles only this sample into source/build (or the
chosen output directory). It neither installs nor rebuilds TMS and does
not alter permanent environment variables. A build log is written next
to Build.ps1. All dependent TMS DCUs must match the chosen compiler.

MANUAL TEST

  .\build\PlannerScrollRepro.exe

Use the two checkboxes to switch orientation and non-visible-item
indicators. Scroll over the planner with the wheel or horizontal scrollbar.
The combo selects 60, 300 (default), or 1200 synthetic appointments.
DoubleBuffered remains True. There is no database connection.

Click the benchmark button to run both orientations/directions with the
selected item count and indicators ON/OFF, in three paired repetitions.
The settings panel is disabled while the benchmark is running. The app
stays open after a manual run. A run overwrites its own results files.

AUTOMATIC TEST ON THE CURRENT DESKTOP

  .\build\PlannerScrollRepro.exe /auto

Runs the default 300-item benchmark and exits. Expect roughly one minute
on the tested machine; slower systems can take longer. Results are in
build/results. A complete run has 24 cases, 288 measured scroll steps,
an explicit COMPLETE line in progress.txt and exit code 0.

OPTIONAL PRIVATE-DESKTOP TEST (USED FOR THE INCLUDED NEW MEASUREMENTS)

  python .\RunIsolated.py .\build\PlannerScrollRepro.exe

The launcher checks PE imports, creates a separate Windows desktop,
launches only the sample with /auto, waits for exit, closes handles and
releases the desktop. It never switches the visible user desktop. A
15-minute timeout terminates only the child process created by it.
It writes imports.json and lifecycle.json beside the executable.
The launcher needs permission to create a desktop in its Windows session.
Normal manual/automatic use does not require this helper.

DATA SERIES - KEEP SEPARATE

minimal-13.6.5.1 and minimal-13.8.0.0:
  Raw data from the exact plain TPlanner sample included here. Each has
  24 cases / 288 measured steps. minimal-summary.csv aggregates three
  paired repetitions per orientation, scrolling direction and setting.

historical-integration-indicators:
  Earlier application-style synthetic harness, UI Pack 13.6.5.1.
  Only indicator ON/OFF variants (0 and 5) included: 72 cases / 864 steps.
  These raw data retain their original case IDs. Its proprietary integration
  source is not included; the standalone sample independently reproduces
  the essential issue.

historical-version-comparison:
  Earlier matched application-style test, indicators ON, four process
  runs per version. 96 cases / 1152 steps. Join rows/steps by uipack,
  round, and id. summary.json includes paired comparison intervals.

CSV DEFINITIONS

- axis=0: spLeft (timeline left), axis=1: spTop (timeline top).
- direction=0: visual vertical wheel scrolling; direction=1: horizontal
  scrollbar. Time/resource axis therefore differs between orientations.
- nvi=1/0: indicators ON/OFF (standalone sample).
- variant=0/5: indicators ON/OFF (historical integration series).
- repeat: zero-based repetition; steps: number of measured operations.
- All fields ending in ms are milliseconds; decimal separator is a dot.
- cpu_ms: UI-thread CPU time for the whole case, NOT per step.
- grid_paints: WM_PAINT count for the whole case; divide by steps.
- width/height: planner client pixels. visible_cols/rows: grid cells.
- steps.csv top_row/left_col record the actual grid position after each
  operation in the standalone sample. Match by case_id and step.
- Historical profile=0 means the stack sampler was not active.
- Header timing fields are retained only for completeness of raw data.
- The historical comparison JSON uses normal/transponiert for the view
  and Mausrad/horizontal for direction; these mean spLeft/spTop and
  wheel/horizontal respectively.
- time_saved_percent = 100 * (on_mean_ms-off_mean_ms) / on_mean_ms.

No values from different fixtures should be mixed to infer a speedup.
