Recent

Author Topic: New build up takes 2 seconds  (Read 2150 times)

madref

  • Hero Member
  • *****
  • Posts: 949
  • ..... A day not Laughed is a day wasted !!
    • Nursing With Humour
New build up takes 2 seconds
« on: May 21, 2018, 12:51:43 pm »
I have this database with a bit of info in it.
When I open the form it builds fast with the correct data.
But when I change the season it takes about 2 seconds to show me the information of that season.


Is there a way to speed things up? Or am I doing something wrong?


p.s. put the Test.s2db-file in your document-folder.
« Last Edit: May 23, 2018, 08:28:54 am by madref »
You treat a disease, you win, you lose.
You treat a person and I guarantee you, you win, no matter the outcome.

Lazarus 3.99 (rev main_3_99-649-ge13451a5ab) FPC 3.3.1 x86_64-darwin-cocoa
Mac OS X Monterey

madref

  • Hero Member
  • *****
  • Posts: 949
  • ..... A day not Laughed is a day wasted !!
    • Nursing With Humour
Re: New build up takes 2 seconds
« Reply #1 on: May 24, 2018, 08:31:33 am »
bump up....


anyone??
You treat a disease, you win, you lose.
You treat a person and I guarantee you, you win, no matter the outcome.

Lazarus 3.99 (rev main_3_99-649-ge13451a5ab) FPC 3.3.1 x86_64-darwin-cocoa
Mac OS X Monterey

reinerr

  • New Member
  • *
  • Posts: 37
Re: New build up takes 2 seconds
« Reply #2 on: May 25, 2018, 05:26:20 am »
What type of controls in your form get updated? Do they support .beginUpdate...EndUpdate? I suspect your form is doing a lot of redrawing when you are changing the "season".
« Last Edit: May 25, 2018, 05:36:02 am by reinerr »

madref

  • Hero Member
  • *****
  • Posts: 949
  • ..... A day not Laughed is a day wasted !!
    • Nursing With Humour
Re: New build up takes 2 seconds
« Reply #3 on: May 25, 2018, 05:49:49 pm »
that's what I thought too. But I can't find the problem
You treat a disease, you win, you lose.
You treat a person and I guarantee you, you win, no matter the outcome.

Lazarus 3.99 (rev main_3_99-649-ge13451a5ab) FPC 3.3.1 x86_64-darwin-cocoa
Mac OS X Monterey

Jurassic Pork

  • Hero Member
  • *****
  • Posts: 1228
Re: New build up takes 2 seconds
« Reply #4 on: May 26, 2018, 02:21:22 am »
hello,
use a profiler to see where you lost time.
Maybe you have a problem with TQ_SeizoenAfterScroll (see Attachment after one change on Seizoen).
And also ComboBox_RefereeSeizoenOnChange is never called because this in your code :
Code: Pascal  [Select][+][-]
  1.  ComboBox_RefereeSeizoen.OnChange := nil;


Friendly, J.P
Jurassic computer : Sinclair ZX81 - Zilog Z80A à 3,25 MHz - RAM 1 Ko - ROM 8 Ko

 

TinyPortal © 2005-2018