How to optimize performance with multiple controls in LiveCode

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
jeffreestar
Posts: 1
Joined: Wed Oct 01, 2025 9:55 am

How to optimize performance with multiple controls in LiveCode

Post by jeffreestar » Wed Oct 01, 2025 9:57 am

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?

Klaus
Posts: 14242
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: How to optimize performance with multiple controls in LiveCode

Post by Klaus » Wed Oct 01, 2025 10:43 am

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

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10381
Joined: Wed May 06, 2009 2:28 pm

Re: How to optimize performance with multiple controls in LiveCode

Post by dunbarx » Wed Oct 01, 2025 4:18 pm

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

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10381
Joined: Wed May 06, 2009 2:28 pm

Re: How to optimize performance with multiple controls in LiveCode

Post by dunbarx » Wed Oct 01, 2025 4:19 pm

Resizing aside, what do you mean when you say
the app shows signs of slowing down
Craig
Last edited by dunbarx on Wed Oct 01, 2025 4:22 pm, edited 1 time in total.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10180
Joined: Fri Feb 19, 2010 10:17 am

Re: How to optimize performance with multiple controls in LiveCode

Post by richmond62 » Wed Oct 01, 2025 4:21 pm

Ask Marvin the Paranoid Android. 8)
-
SS 2025-10-01 at 18.21.30.png
-
I am always suspicious of first-time posters who appear to want to run a Marathon before they have learnt to crawl.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10381
Joined: Wed May 06, 2009 2:28 pm

Re: How to optimize performance with multiple controls in LiveCode

Post by dunbarx » Wed Oct 01, 2025 4:25 pm

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? 8)

Craig

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10180
Joined: Fri Feb 19, 2010 10:17 am

Re: How to optimize performance with multiple controls in LiveCode

Post by richmond62 » Wed Oct 01, 2025 4:52 pm

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.

FourthWorld
VIP Livecode Opensource Backer
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

Post by FourthWorld » Wed Oct 01, 2025 5:51 pm

jeffreestar wrote:
Wed Oct 01, 2025 9:57 am
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?
How many objects are on your card?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply