How to optimize performance with multiple controls in LiveCode
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Posts: 1
- Joined: Wed Oct 01, 2025 9:55 am
How to optimize performance with multiple controls in LiveCode
Hello everyone, I am making an app using LiveCode with quite a lot of controls (buttons, fields…). When the number of controls increases, the app shows signs of slowing down, especially when resizing the window. Does anyone have experience optimizing performance or best practices in this case that can help me?
Re: How to optimize performance with multiple controls in LiveCode
Hi Jeff,
welcome to the forum!
Hm, hard to tell from afar without more info.
What platform, what version of LC, how many controls do you have and what kind are these(images or text or...)
Best
Klaus
welcome to the forum!
Hm, hard to tell from afar without more info.
What platform, what version of LC, how many controls do you have and what kind are these(images or text or...)
Best
Klaus
Re: How to optimize performance with multiple controls in LiveCode
Klaus makes a point, but I was intrigued.
I made a new stack with 4100 controls. Buttons, fields, graphics and sliders. I resized the card and did notice a "jumpiness" in that process. Reducing the number of controls to 2000, still left a similar but smaller effect. Down to 1500 and the effect was not perfectly smooth, but only you and I would notice.
Klaus, you can join this exclusive club if you want.
So how many controls are you thinking of, though I do not think there is a way out of this. Certain system messages are sent during resizing, but I do not know if that matters.
Craig
I made a new stack with 4100 controls. Buttons, fields, graphics and sliders. I resized the card and did notice a "jumpiness" in that process. Reducing the number of controls to 2000, still left a similar but smaller effect. Down to 1500 and the effect was not perfectly smooth, but only you and I would notice.
Klaus, you can join this exclusive club if you want.
So how many controls are you thinking of, though I do not think there is a way out of this. Certain system messages are sent during resizing, but I do not know if that matters.
Craig
Re: How to optimize performance with multiple controls in LiveCode
Resizing aside, what do you mean when you say
Craigthe app shows signs of slowing down
Last edited by dunbarx on Wed Oct 01, 2025 4:22 pm, edited 1 time in total.
-
- Livecode Opensource Backer
- Posts: 10180
- Joined: Fri Feb 19, 2010 10:17 am
Re: How to optimize performance with multiple controls in LiveCode
Ask Marvin the Paranoid Android. 
- -
I am always suspicious of first-time posters who appear to want to run a Marathon before they have learnt to crawl.

- -
I am always suspicious of first-time posters who appear to want to run a Marathon before they have learnt to crawl.
Re: How to optimize performance with multiple controls in LiveCode
Richmond.
Maybe, but I think not.
I would have bet a dollar that one would notice a difference in "movement" when resizing a card with very many controls, but only a dollar. An AI bot would have to have quite a sense, at least as good as mine, of LC and both its workings and its feel, to compose that post.
Bet a dollar?
Craig
Maybe, but I think not.
I would have bet a dollar that one would notice a difference in "movement" when resizing a card with very many controls, but only a dollar. An AI bot would have to have quite a sense, at least as good as mine, of LC and both its workings and its feel, to compose that post.
Bet a dollar?

Craig
-
- Livecode Opensource Backer
- Posts: 10180
- Joined: Fri Feb 19, 2010 10:17 am
Re: How to optimize performance with multiple controls in LiveCode
Sorry: No dollars round these parts (well, I do have some of that plastic play money in my EFL school): only Bulgarian Leva which, from January 1, 2026 are going to be obsolete as we will have Euros (Cheers, cheers).
But there does seem to be a 'small plethora' of first-time posters just now with relatively complex questions.
But there does seem to be a 'small plethora' of first-time posters just now with relatively complex questions.
-
- VIP Livecode Opensource Backer
- Posts: 10065
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: How to optimize performance with multiple controls in LiveCode
How many objects are on your card?jeffreestar wrote: ↑Wed Oct 01, 2025 9:57 amHello everyone, I am making an app using LiveCode with quite a lot of controls (buttons, fields…). When the number of controls increases, the app shows signs of slowing down, especially when resizing the window. Does anyone have experience optimizing performance or best practices in this case that can help me?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn