Limiting Levels
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Limiting Levels
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
Re: Limiting Levels
Hi Mel,
not sure what you mean by "level"? De you mean "layer" in Livecode?
Best
Klaus
not sure what you mean by "level"? De you mean "layer" in Livecode?
Best
Klaus
Re: Limiting Levels
Sorry, Yes: layer
Thanks Klaus
Thanks Klaus
rebuilding visual programming app originally created in 1993 as Hypercard stack
Re: Limiting Levels
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
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
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
Craig Newman
Re: Limiting Levels
OK - Thanks (think I knew that at one time but was forgotten)
rebuilding visual programming app originally created in 1993 as Hypercard stack
Re: Limiting Levels
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.
The engine uses the layerMode for caching decisions.
shiftLock happens
-
- Livecode Opensource Backer
- Posts: 10077
- Joined: Fri Feb 19, 2010 10:17 am
Re: Limiting Levels
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.
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
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.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.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com