Page 1 of 1
Limiting Levels
Posted: Tue May 30, 2017 8:23 pm
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?)
Re: Limiting Levels
Posted: Tue May 30, 2017 9:02 pm
by Klaus
Hi Mel,
not sure what you mean by "level"? De you mean "layer" in Livecode?
Best
Klaus
Re: Limiting Levels
Posted: Tue May 30, 2017 9:26 pm
by melristau
Sorry, Yes: layer
Thanks Klaus
Re: Limiting Levels
Posted: Tue May 30, 2017 9:38 pm
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
Re: Limiting Levels
Posted: Tue May 30, 2017 9:57 pm
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
Re: Limiting Levels
Posted: Tue May 30, 2017 10:25 pm
by melristau
OK - Thanks (think I knew that at one time but was forgotten)
Re: Limiting Levels
Posted: Wed May 31, 2017 1:18 pm
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.
Re: Limiting Levels
Posted: Wed May 31, 2017 7:34 pm
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.
Re: Limiting Levels
Posted: Thu Jun 01, 2017 8:22 pm
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.