Re: Printing borked for LC Linux?

2021-01-17 Thread JeeJeeStudio via use-livecode

Off Topic:

I have a triple boot and Ubuntu is just booting so fast, within 2 
seconds i'm on the log-in.


Win10 Boots faster than BigSur, but BigSur shuts down faster, Win10 is a 
pain in the butt when shutting down.


Ubuntu is the fastest booting and shutting down.

Sorry for hijacking this thread.

Op 17-1-2021 om 19:09 schreef Bob Sneidar via use-livecode:

I don’t use Linux, but the way things are going with Apple, I may consider it.

Bob S


On Jan 16, 2021, at 10:30 AM, Richard Gaskin via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

I've been printing almost exclusively to PDF for the last several years, but 
this morning I wanted to print to actual paper, and found that LC doesn't print 
from Ubuntu.

There's nothing in the result after the print command, so LC thinks it's doing 
fine.

And I can print from any other app on the same machine, just not LC.

This report for Linux Mint seems perhaps relevant:
https://quality.livecode.com/show_bug.cgi?id=21131

But it's from nearly three years ago - has printing been completely broken in 
the LC Linux engine for years and so few noticed?

Any of you able to print from LC in Linux?

--
Richard Gaskin
Fourth World Systems
Software Design and Development for the Desktop, Mobile, and the Web

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Is there a way to manually trigger GC?

2021-01-17 Thread Tom Glod via use-livecode
PS > I just remembered why I loaded it ... its to enable fast searching of
past text clips.  But maybe I can lazy load image clips which are the ones
that take up the most amount of ram anyways.




On Sun, Jan 17, 2021 at 12:35 PM Tom Glod  wrote:

> Hi Phil, that function only reports available memory.
>
> Hi Rick,
>
> My application, the Time Saver's Toolbox, has a clipboard manager, and
> upon loading the app, I load the existing archive of "clips" into memory.
> Currently for example, the app is using 37 megabytes of system ram.
> You are right, on-demand loading seems to be the only way i can have some
> control over memory consumption.
> Luckily I had enough foresight to keep a list of clips and their timestamp
> without the data, so i can load that instead of the clips.
>
> Thanks guys ...
>
>
> On Sun, Jan 17, 2021 at 12:20 PM Rick Harrison via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
>> Hi Tom,
>>
>> Garbage Collection and releasing memory is not an
>> easy problem to solve.  It would be better to try to
>> figure out why your application is chewing up so
>> much memory on load.
>>
>> Load times can be improved by only loading in
>> stuff that you absolutely need to access at the
>> moment to display to your user.  If you can stall
>> loading things until idle you may be able to smooth
>> out performance.  This is usually things like trying
>> to load tons of images all at once for a game etc.
>>
>> On the plus side, the fact that memory use drops
>> down after load to under 100 mb is good.
>>
>> If you are using a lot of images, are they part of
>> the stack or are you trying to load them after the
>> program is running?
>>
>> Lots of things affect performance.  Try to think
>> of what might be hampering that.
>>
>> Good luck!
>>
>> Rick
>>
>>
>>
>> > On Jan 16, 2021, at 2:31 PM, Tom Glod via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> >
>> > Hi Folks,
>> >
>> > I'm finding my application does a nice job to unload data from memory,
>> but
>> > it takes a while for that to happen.  When the initial load of the
>> > application occurs, the memory consumption is quite high if there is
>> lots
>> > of data to be loaded (1 GB+).
>> >
>> > But after a while, the used ram drops down to under 100 mb as the
>> > application run in the background, after which the application swaps is
>> > only the data I am accessing.
>> >
>> > Can I trigger that memory release manually? (Maybe its another mechanism
>> > and not GC?!)
>> >
>> > TIA
>> >
>> >
>> > Tom Glod
>> > Founder & Developer
>> > MakeShyft R.D.A (www.makeshyft.com)
>> > Mobile:647.562.9411
>> > ___
>> > use-livecode mailing list
>> > use-livecode@lists.runrev.com
>> > Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> > http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>>
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>
>
> --
> Tom Glod
> Founder & Developer
> MakeShyft R.D.A (www.makeshyft.com)
> Mobile:647.562.9411
>


-- 
Tom Glod
Founder & Developer
MakeShyft R.D.A (www.makeshyft.com)
Mobile:647.562.9411
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Printing borked for LC Linux?

2021-01-17 Thread Bob Sneidar via use-livecode
I don’t use Linux, but the way things are going with Apple, I may consider it.

Bob S


On Jan 16, 2021, at 10:30 AM, Richard Gaskin via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

I've been printing almost exclusively to PDF for the last several years, but 
this morning I wanted to print to actual paper, and found that LC doesn't print 
from Ubuntu.

There's nothing in the result after the print command, so LC thinks it's doing 
fine.

And I can print from any other app on the same machine, just not LC.

This report for Linux Mint seems perhaps relevant:
https://quality.livecode.com/show_bug.cgi?id=21131

But it's from nearly three years ago - has printing been completely broken in 
the LC Linux engine for years and so few noticed?

Any of you able to print from LC in Linux?

--
Richard Gaskin
Fourth World Systems
Software Design and Development for the Desktop, Mobile, and the Web

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Is there a way to manually trigger GC?

2021-01-17 Thread Tom Glod via use-livecode
Hi Phil, that function only reports available memory.

Hi Rick,

My application, the Time Saver's Toolbox, has a clipboard manager, and upon
loading the app, I load the existing archive of "clips" into memory.
Currently for example, the app is using 37 megabytes of system ram.
You are right, on-demand loading seems to be the only way i can have some
control over memory consumption.
Luckily I had enough foresight to keep a list of clips and their timestamp
without the data, so i can load that instead of the clips.

Thanks guys ...


On Sun, Jan 17, 2021 at 12:20 PM Rick Harrison via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi Tom,
>
> Garbage Collection and releasing memory is not an
> easy problem to solve.  It would be better to try to
> figure out why your application is chewing up so
> much memory on load.
>
> Load times can be improved by only loading in
> stuff that you absolutely need to access at the
> moment to display to your user.  If you can stall
> loading things until idle you may be able to smooth
> out performance.  This is usually things like trying
> to load tons of images all at once for a game etc.
>
> On the plus side, the fact that memory use drops
> down after load to under 100 mb is good.
>
> If you are using a lot of images, are they part of
> the stack or are you trying to load them after the
> program is running?
>
> Lots of things affect performance.  Try to think
> of what might be hampering that.
>
> Good luck!
>
> Rick
>
>
>
> > On Jan 16, 2021, at 2:31 PM, Tom Glod via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > Hi Folks,
> >
> > I'm finding my application does a nice job to unload data from memory,
> but
> > it takes a while for that to happen.  When the initial load of the
> > application occurs, the memory consumption is quite high if there is lots
> > of data to be loaded (1 GB+).
> >
> > But after a while, the used ram drops down to under 100 mb as the
> > application run in the background, after which the application swaps is
> > only the data I am accessing.
> >
> > Can I trigger that memory release manually? (Maybe its another mechanism
> > and not GC?!)
> >
> > TIA
> >
> >
> > Tom Glod
> > Founder & Developer
> > MakeShyft R.D.A (www.makeshyft.com)
> > Mobile:647.562.9411
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


-- 
Tom Glod
Founder & Developer
MakeShyft R.D.A (www.makeshyft.com)
Mobile:647.562.9411
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Is there a way to manually trigger GC?

2021-01-17 Thread Rick Harrison via use-livecode
Hi Tom,

Garbage Collection and releasing memory is not an
easy problem to solve.  It would be better to try to
figure out why your application is chewing up so
much memory on load.

Load times can be improved by only loading in
stuff that you absolutely need to access at the
moment to display to your user.  If you can stall
loading things until idle you may be able to smooth
out performance.  This is usually things like trying
to load tons of images all at once for a game etc.

On the plus side, the fact that memory use drops
down after load to under 100 mb is good.

If you are using a lot of images, are they part of
the stack or are you trying to load them after the
program is running?

Lots of things affect performance.  Try to think
of what might be hampering that.

Good luck!

Rick



> On Jan 16, 2021, at 2:31 PM, Tom Glod via use-livecode 
>  wrote:
> 
> Hi Folks,
> 
> I'm finding my application does a nice job to unload data from memory, but
> it takes a while for that to happen.  When the initial load of the
> application occurs, the memory consumption is quite high if there is lots
> of data to be loaded (1 GB+).
> 
> But after a while, the used ram drops down to under 100 mb as the
> application run in the background, after which the application swaps is
> only the data I am accessing.
> 
> Can I trigger that memory release manually? (Maybe its another mechanism
> and not GC?!)
> 
> TIA
> 
> 
> Tom Glod
> Founder & Developer
> MakeShyft R.D.A (www.makeshyft.com)
> Mobile:647.562.9411
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode