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 » Tue May 30, 2017 8:23 pm

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: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Limiting Levels

Post by Klaus » Tue May 30, 2017 9:02 pm

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 » Tue May 30, 2017 9:26 pm

Sorry, Yes: layer
Thanks Klaus
rebuilding visual programming app originally created in 1993 as Hypercard stack

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

Re: Limiting Levels

Post by Klaus » Tue May 30, 2017 9:38 pm

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: 10305
Joined: Wed May 06, 2009 2:28 pm

Re: Limiting Levels

Post by dunbarx » Tue May 30, 2017 9:57 pm

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 » Tue May 30, 2017 10:25 pm

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] » Wed May 31, 2017 1:18 pm

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: 10077
Joined: Fri Feb 19, 2010 10:17 am

Re: Limiting Levels

Post by richmond62 » Wed May 31, 2017 7:34 pm

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: 7389
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Limiting Levels

Post by jacque » Thu Jun 01, 2017 8:22 pm

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