Re: Modal stacks cpu usage

2020-10-08 Thread Mark Wieder via use-livecode

On 10/2/20 5:08 PM, Neville Smythe via use-livecode wrote:

Looks like Elanor beat me to it Bug 22929 



Ian fixed the problem. It's currently awaiting a merge into the next 
release.


--
 Mark Wieder
 ahsoftw...@gmail.com

___
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: Modal stacks cpu usage

2020-10-05 Thread Andreas Bergendal via use-livecode
Indeed, when I open the Message box and click the Pending messages tab, two 
messages always keep running there:
_EnsureAccept (seems to have to do with the remote debugger library?)
_revInternal_SavePreferences

Just LC 9.6.1 running, no stacks. I’m also on Mojave.


J. Landman Gay via use-livecode 

 Mon, 05 Oct 2020 10:02:14 -0700 

> I'm fairly sure the IDE is sending some pending messages 
> in the background which would account for the CPU usage. 
___
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: Modal stacks cpu usage

2020-10-05 Thread J. Landman Gay via use-livecode

On 10/3/20 8:36 PM, Neville Smythe via use-livecode wrote:

Jacque wrote

If the Project Browser is open, try closing it. On my Mac, the CPU usage
while idle is usually close to 0 when in the background.


Interesting. I would indeed have expected a good-citizen app doing nothing in the background to use less than 1% cpu: Mail, Safari. Finder, BBEdit, Keyboard Maestro are currently all close to 0% But I never see LC using less than 4.3% with no user stacks open, no palettes, no plugins, no scripts, just the IDE. 


I just checked again with LC 9.6.1, because the last time I looked was with a previous version. 
With no open stacks of my own and only the Application Browser open, it hovers around 2%. When 
I closed the App Browser, it dropped to about 1.5% and then hovered in the 1.5-2.0 range. While 
writing this email it jumped to 3.5% momentarily, then dropped back to 2.5%.


I'm still on Mojave if that matters. I'm fairly sure the IDE is sending some pending messages 
in the background which would account for the CPU usage.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
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: Modal stacks cpu usage

2020-10-03 Thread Neville Smythe via use-livecode
Jacque wrote
> If the Project Browser is open, try closing it. On my Mac, the CPU usage 
> while idle is usually close to 0 when in the background.

Interesting. I would indeed have expected a good-citizen app doing nothing in 
the background to use less than 1% cpu: Mail, Safari. Finder, BBEdit, Keyboard 
Maestro are currently all close to 0% But I never see LC using less than 4.3% 
with no user stacks open, no palettes, no plugins, no scripts, just the IDE. 
Adding revSmartSave brings it up to 15%. The only odd thing about the process I 
can see is the unusually high number of “idle wake ups”, sometimes over 100 in 
the Activity Monitor sampling period: no other process excepting kernel_task 
has anything like this number.

Of course it’s a mug’s game — if that is a phrase in your neck of the woods— 
trying to second guess OS time-sharing parameters, but it does look like LC is 
not a very nice (pun intended) citizen at least in this configuration: Catalina 
10.15.6, Mac Air 2020 quad core, LC 9.6.1 Community! 

Neville





___
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: Modal stacks cpu usage

2020-10-02 Thread J. Landman Gay via use-livecode
If the Project Browser is open, try closing it. On my Mac, the CPU usage 
while idle is usually close to 0 when in the background.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On October 2, 2020 7:03:59 PM Neville Smythe via use-livecode 
 wrote:



Confirmed here on macOS 10.14.5.  The CPU load is indeed quite dramatic
with modal dialogs.

I also checked on Linux (Ubuntu 18.04), and LC does not exhibit the
problem there.



Thanks Richard for confirming, and testing on Linux. Yes I will file a bug 
report.


It occurred to me that LC shouldn’t be using as much as 34% cpu when it is 
just idling anyway, even when not running a modal stack. Testing just now 
shows that is down to around 16%; of course LC’s time share will depend on 
lots of OS factors and other running apps, but that’s still way too high 
for an app supposedly doing nothing but waiting for events. Turning off the 
Rinaldi revSmartSave plugin brings it down to between 4 and 7%, which is 
more reasonable; presumably something to do with displaying its progress 
bar, perhaps another wait side effect.


Neville Smythe
___
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: Modal stacks cpu usage

2020-10-02 Thread Neville Smythe via use-livecode
Looks like Elanor beat me to it Bug 22929 
 

Neville Smythe
___
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: Modal stacks cpu usage

2020-10-02 Thread Neville Smythe via use-livecode
> Confirmed here on macOS 10.14.5.  The CPU load is indeed quite dramatic 
> with modal dialogs.
> 
> I also checked on Linux (Ubuntu 18.04), and LC does not exhibit the 
> problem there.


Thanks Richard for confirming, and testing on Linux. Yes I will file a bug 
report.

It occurred to me that LC shouldn’t be using as much as 34% cpu when it is just 
idling anyway, even when not running a modal stack. Testing just now shows that 
is down to around 16%; of course LC’s time share will depend on lots of OS 
factors and other running apps, but that’s still way too high for an app 
supposedly doing nothing but waiting for events. Turning off the Rinaldi 
revSmartSave plugin brings it down to between 4 and 7%, which is more 
reasonable; presumably something to do with displaying its progress bar, 
perhaps another wait side effect.

Neville Smythe
___
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: Modal stacks cpu usage

2020-10-01 Thread Bob Sneidar via use-livecode
I’ll weigh in here. I have noticed at times my Mac becoming slow and extremely 
laggy to input. Quitting all my apps, including LC seems to resolve it, 
although I never dug in any deeper. (Honestly I thought it was a Chrome or web 
page issue and I am used to those.) Next time I see the issue I will dig 
further.

Bob S


On Oct 1, 2020, at 9:28 AM, Richard Gaskin via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Neville Smythe wrote:

> Typically LC cpu usage shows about 34%  (presumably of 1 core).  When
> a modal stack is opened it immediately ramps up to 99% ; the fan kicks
> in, and if left for a while the OS boosts the kernel_task daemon which
> I have been told is a protection device to prevent overheating. This
> has the effect of very markedly slowing down all apps as they get less
> cpu time.
>
> If the stack is opened in non-modal mode, cpu usage stays around 34% .
> I don’t understand why a modal stack should be a cpu hog, indeed it
> seems like a bug to me.

Confirmed here on macOS 10.14.5.  The CPU load is indeed quite dramatic with 
modal dialogs.

I also checked on Linux (Ubuntu 18.04), and LC does not exhibit the problem 
there.

Have you opened a bug report on this?

--
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: Modal stacks cpu usage

2020-10-01 Thread Richard Gaskin via use-livecode

Neville Smythe wrote:

> Typically LC cpu usage shows about 34%  (presumably of 1 core).  When
> a modal stack is opened it immediately ramps up to 99% ; the fan kicks
> in, and if left for a while the OS boosts the kernel_task daemon which
> I have been told is a protection device to prevent overheating. This
> has the effect of very markedly slowing down all apps as they get less
> cpu time.
>
> If the stack is opened in non-modal mode, cpu usage stays around 34% .
> I don’t understand why a modal stack should be a cpu hog, indeed it
> seems like a bug to me.

Confirmed here on macOS 10.14.5.  The CPU load is indeed quite dramatic 
with modal dialogs.


I also checked on Linux (Ubuntu 18.04), and LC does not exhibit the 
problem there.


Have you opened a bug report on this?

--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com

___
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: Modal stacks cpu usage

2020-10-01 Thread Phil Davis via use-livecode
Sorry Neville, I didn't read your email closely enough - you are 
obviously on the right track.


Phil


On 9/30/20 9:02 PM, Phil Davis via use-livecode wrote:
Another factor I discovered in times past (which may have been changed 
by now) that eats up CPU cycles is the "Default" button style. Do you 
possibly have one of those on your stack?


Phil Davis


On 9/30/20 7:30 PM, Neville Smythe via use-livecode wrote:

I have just noticed something curious.

I am running LiveCode 8.1 IDE 9.6.1 on a Mac Air 2020 quad core 
Catalina.


Typically LC cpu usage shows about 34%  (presumably of 1 core). When 
a modal stack is opened it immediately ramps up to 99% ; the fan 
kicks in, and if left for a while the OS boosts the kernel_task 
daemon which I have been told is a protection device to prevent 
overheating. This has the effect of very markedly slowing down all 
apps as they get less cpu time.


If the stack is opened in non-modal mode, cpu usage stays around 34% 
. I don’t understand why a modal stack should be a cpu hog, indeed it 
seems like a bug to me.


I have a suspicion the wait with messages command  may have the same 
effect on cpu performance, so it could be the culprit.






___
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




--
Phil Davis
503-307-4363


___
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: Modal stacks cpu usage

2020-09-30 Thread Phil Davis via use-livecode
Another factor I discovered in times past (which may have been changed 
by now) that eats up CPU cycles is the "Default" button style. Do you 
possibly have one of those on your stack?


Phil Davis


On 9/30/20 7:30 PM, Neville Smythe via use-livecode wrote:

I have just noticed something curious.

I am running LiveCode 8.1 IDE 9.6.1 on a Mac Air 2020 quad core Catalina.

Typically LC cpu usage shows about 34%  (presumably of 1 core).  When a modal 
stack is opened it immediately ramps up to 99% ; the fan kicks in, and if left 
for a while the OS boosts the kernel_task daemon which I have been told is a 
protection device to prevent overheating. This has the effect of very markedly 
slowing down all apps as they get less cpu time.

If the stack is opened in non-modal mode, cpu usage stays around 34% . I don’t 
understand why a modal stack should be a cpu hog, indeed it seems like a bug to 
me.

I have a suspicion the wait with messages command  may have the same effect on 
cpu performance, so it could be the culprit.





___
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


--
Phil Davis
503-307-4363


___
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


Modal stacks cpu usage

2020-09-30 Thread Neville Smythe via use-livecode
I have just noticed something curious. 

I am running LiveCode 8.1 IDE 9.6.1 on a Mac Air 2020 quad core Catalina.  

Typically LC cpu usage shows about 34%  (presumably of 1 core).  When a modal 
stack is opened it immediately ramps up to 99% ; the fan kicks in, and if left 
for a while the OS boosts the kernel_task daemon which I have been told is a 
protection device to prevent overheating. This has the effect of very markedly 
slowing down all apps as they get less cpu time.

If the stack is opened in non-modal mode, cpu usage stays around 34% . I don’t 
understand why a modal stack should be a cpu hog, indeed it seems like a bug to 
me. 

I have a suspicion the wait with messages command  may have the same effect on 
cpu performance, so it could be the culprit.





___
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