Limiting Levels

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
melristau
Posts: 56
Joined: Tue Jul 14, 2015 5:15 pm
Contact:

Limiting Levels

Post by melristau »

After importing over 200 images (most 72x72) they each reside on separate levels (as expected). Any efficiency gained by reassigning them to a more limited number of levels? (Say 10 levels?)
rebuilding visual programming app originally created in 1993 as Hypercard stack
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Limiting Levels

Post by Klaus »

Hi Mel,


not sure what you mean by "level"? De you mean "layer" in Livecode?


Best

Klaus
melristau
Posts: 56
Joined: Tue Jul 14, 2015 5:15 pm
Contact:

Re: Limiting Levels

Post by melristau »

Sorry, Yes: layer
Thanks Klaus
rebuilding visual programming app originally created in 1993 as Hypercard stack
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Limiting Levels

Post by Klaus »

Hi Mel,

ah, I see.

No, you cannot change the principle of -> one object perlayer!
So your question cannot be answered at all and it would not affect
the resulting filesize if you could change this.


Best

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

Re: Limiting Levels

Post by dunbarx »

Is files size important? I can think of a couple of highly kluged ways to limit the number of layers, by locating and showing only portions of a composite image. But I have no idea if this actually saves space, since the images themselves would be larger, even if the number of layers is reduced.

Craig Newman
melristau
Posts: 56
Joined: Tue Jul 14, 2015 5:15 pm
Contact:

Re: Limiting Levels

Post by melristau »

OK - Thanks (think I knew that at one time but was forgotten)
rebuilding visual programming app originally created in 1993 as Hypercard stack
[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm

Re: Limiting Levels

Post by [-hh] »

If you mean with 'efficiency' the screen update then regarding to layers there may be a gain only if you try to optimize the layerMode of all/some images.

The engine uses the layerMode for caching decisions.
shiftLock happens
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10415
Joined: Fri Feb 19, 2010 10:17 am

Re: Limiting Levels

Post by richmond62 »

Many long years ago, when LiveCode was called "Revolution" I remember that any image imported into
a stack (regardless of what type of image it was before that) was converted into one internal type
of format. I wonder if this is still true.
jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7423
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Limiting Levels

Post by jacque »

richmond62 wrote:Many long years ago, when LiveCode was called "Revolution" I remember that any image imported into
a stack (regardless of what type of image it was before that) was converted into one internal type
of format. I wonder if this is still true.
Imported images retain their original format now. If the image is created in LC it's RLE by default though you can export it in any format, or change its format if you want. There are exceptions; for example, if an image has an alpha channel it is automatically converted to PNG. See "paintCompression" in the dictionary for more info.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
Post Reply