Hello TMS Support,
We are experiencing slow scrolling and high CPU usage with TPlanner when IndicateNonVisibleItems=True.
The attached standalone Delphi example reproduces this without a database, custom drawing events, a custom planner class or an assigned DrawTool. Both Planner.DoubleBuffered and GridControl.DoubleBuffered remain True.
Tested versions:
- TMS VCL UI Pack 13.6.5.1 / TPlanner 3.6.2.4
- TMS VCL UI Pack 13.8.0.0 / TPlanner 3.6.2.5
- RAD Studio 13, Release/Win64x, Windows Server 2025
The issue occurs with both Sidebar.Position=spLeft and spTop, using mouse-wheel and horizontal scrolling.
With 300 synthetic appointments plus 90 background items, UI Pack 13.8.0.0 produces these average times per scroll step:
| View | Scrolling | Indicators ON | Indicators OFF |
|---|---|---:|---:|
| spLeft | Mouse wheel | 171.40 ms | 58.06 ms |
| spLeft | Horizontal | 197.16 ms | 65.95 ms |
| spTop | Mouse wheel | 183.30 ms | 66.81 ms |
| spTop | Horizontal | 216.11 ms | 67.15 ms |
Each measured step produces three grid WM_PAINT messages with indicators enabled, versus one with indicators disabled. Results use three repetitions of twelve measured steps per configuration.
To reproduce:
1. Build and run the attached PlannerScrollRepro project; instructions are in README.txt.
2. Click “Benchmark both views, indicators on/off”.
3. Alternatively, toggle the indicator/orientation checkboxes and scroll manually.
Expected: indicator updates should not trigger repeated full-calendar repaints.
Source inspection suggests a pixel/cell-coordinate mismatch between UpdateNVI and RepaintRect. The double-buffered WMPaint path also appears not to transfer the update-region clipping to its memory DC. These are suspected causes for your review; we have not modified TMS sources.
Could you reproduce this and advise whether a supported fix is available that preserves the indicators and double buffering?
The attachment contains the standalone source, raw measurements, build instructions and a detailed report. All appointment data are synthetic.
Thank you.
Thanks for reporting.
We investigated and could apply a few "IndicateNonVisibleItems" related painting performance improvements that will be included in the next release.