Delphi: How to diagnose sluggish UI?
Posted
by Ian Boyd
on Stack Overflow
See other posts from Stack Overflow
or by Ian Boyd
Published on 2010-04-09T19:55:06Z
Indexed on
2010/04/09
20:03 UTC
Read the original article
Hit count: 312
i have a form, which you can pretend is laid out like Windows Explorer:
- panel on the left
- splitter
client panel
+------------+#+-----------------------+ | |#| | | |#| | | |#| | | |#| | | Left |#| Client | | |#| | | |#| | | |#| | | |#| | | |#| | +------------+#+-----------------------+ ^ | +----splitter
The the left and client area panels are each rich with controls.
The problem is that using the splitter is very sluggish. i would expect that a modern 2 GHz computer can re-display the form as fast as a human can push the mouse around. But that's definitely not the case, and it takes about 200-300 ms before the form is fully re-adjusted.
The form has about 100 visual controls on it, no code, or custom controls.
How do i go about tracing who's the cause of the sluggishness?
© Stack Overflow or respective owner