Slow procedure

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #56757
    Lasse
    Participant

      I have noticed similar slow down with my own editor control – basic text selection seems very sluggish. I used a sampling profiler and there seems to be a lot of FillRect32 calls in sAlphaGraph. This has not been noticeable before.

      I am using SkinManager.Options.OptimizingPriority = opSpeed.

      #56758
      Support
      Keymaster

        Hello!

        I think, it's slow because scrollbars are repainted after each item adding.

        Try to use these methods:

        Code:
        sListBox1.SkinData.BeginUpdate;
        …your code…
        sListBox1.SkinData.EndUpdate;

        If it's slow still, then give me a small demo, please.

        #56766
        Lasse
        Participant

          Thanks, atleast my problem is fixed. 🙂

          #56770
          bswift
          Participant

            Yes!! That has solved the problem. Went from 3758ms to 172ms. Thanks!!! Great Stuff.

          Viewing 4 posts - 1 through 4 (of 4 total)
          • You must be logged in to reply to this topic.