Modal stacks cpu usage
phil at pdslabs.net
Thu Oct 1 02:16:34 EDT 2020
Sorry Neville, I didn't read your email closely enough - you are
obviously on the right track.
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
>> 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 at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
More information about the use-livecode