Xojo Conferences
MBSOct2019CologneDE

App slowing down (Real Studio network user group Mailinglist archive)

Back to the thread list
Previous thread: control dragging
Next thread: Unix Path from Shell to Mac Path


App slowing down   -   Louis JDLTnet
  Re: App slowing down   -   Tony Spencer
   Re: App slowing down   -   Seth Willits
  Re: App slowing down   -   Joseph J. Strout
  app slowing down   -   Louis JDLTnet

App slowing down
Date: 31.05.02 15:04 (Fri, 31 May 2002 10:04:44 -0400)
From: Louis JDLTnet
>> My app works fine, but if I only stop to touch my keyboard for more than a
>> few seconds, the whole thing slows down. I fiddle with the mouse a bit,
>>  and the redraw speed increases...
>
> If you promise not to tell anyone else I tell you how I "solve" this
> problem. While going thru the loop I play a (silent) sound every now and
> then. Not very elegant but it works.

Hmmm, that would qualify as a hack wouldn't it?

Thanx much for the tip, I'll give it a try right away.

Is someone knows of a more "official" way to do it, please let me know.


Louis

---
Subscribe to the digest:
<mailto:<email address removed>>
Unsubscribe:
<mailto:<email address removed>>

Re: App slowing down
Date: 01.06.02 22:16 (Sat, 1 Jun 2002 23:16:25 +0200)
From: Tony Spencer
Unless it's moved, it seems the processor cycling option is no longer in
Energy Saver on OS 10.1.4, at least on a PNG3 Wallstreet Rev A...

On Friday, May 31, 2002, at 04:04 pm, Louis JDLTnet wrote:

>>> My app works fine, but if I only stop to touch my keyboard for more
>>> than a
>>> few seconds, the whole thing slows down. I fiddle with the mouse a
>>> bit,
>>>  and the redraw speed increases...
>>
>> If you promise not to tell anyone else I tell you how I "solve" this
>> problem. While going thru the loop I play a (silent) sound every now
>> and
>> then. Not very elegant but it works.
>

Tony Spencer
St Etienne du Grès, (13) France
<email address removed>
http://homepage.mac.com/tonyspencer/

---
Subscribe to the digest:
<mailto:<email address removed>>
Unsubscribe:
<mailto:<email address removed>>

Re: App slowing down
Date: 03.06.02 07:09 (Sun, 02 Jun 2002 23:09:21 -0700)
From: Seth Willits
On 6/1/02 2:16 PM, the NSA intercepted the following message from "Tony
Spencer" <<email address removed>>:

> Unless it's moved, it seems the processor cycling option is no longer in
> Energy Saver on OS 10.1.4, at least on a PNG3 Wallstreet Rev A...

That's because OS X has it built-in full time. That's the beauty of it. No
app gets more or less than it needs.


(don't get technical on me now)

Seth Willits
---------------------------------------------------------------------------
President and Head Developer of Freak Software - http://www.freaksw.com
Q&A Columnist for REALbasic Developer Magazine - http://www.rbdeveloper.com

"If God did not exist, it would be necessary to invent Him."
-- Voltaire
---------------------------------------------------------------------------



---
Subscribe to the digest:
<mailto:<email address removed>>
Unsubscribe:
<mailto:<email address removed>>

Re: App slowing down
Date: 31.05.02 15:15 (Fri, 31 May 2002 07:15:29 -0700)
From: Joseph J. Strout
At 10:04 AM -0400 5/31/02, Louis JDLTnet wrote:

>Is someone knows of a more "official" way to do it, please let me know.

So simply turning off processor cycling won't work for you?

In that case, the official way is to periodically call IdleUpdate.
This will require a Declare, but a pretty trivial one. I don't have
any RB code handy, but here's pseudocode:

if Gestalt(gestaltPowerMgrAttr, &powerMgrFlags) =
then
if BitwiseAnd(powerMgrFlags, gestaltPMgrCPUIdle) <> 0 then
IdleUpdate()
end if
end if

(Notice that you have to use System.Gestalt to check whether the
machine you're running on supports the Idle function before calling
IdleUpdate, otherwise you'll crash on some machines.)

Cheers,
- Joe

app slowing down
Date: 31.05.02 18:54 (Fri, 31 May 2002 13:54:36 -0400)
From: Louis JDLTnet

>> Is someone knows of a more "official" way to do it, please let me know.
>
> So simply turning off processor cycling won't work for you?
>
> In that case, the official way is to periodically call IdleUpdate.
> This will require a Declare, but a pretty trivial one. I don't have
> any RB code handy, but here's pseudocode:
>
> if Gestalt(gestaltPowerMgrAttr, &powerMgrFlags) =A then
> if BitwiseAnd(powerMgrFlags, gestaltPMgrCPUIdle) <> 0 then
> IdleUpdate()
> end if
> end if

Maybe I spoke too fast, after trying both methods and for the record, the
idleupdate() solution doesn't seem to work (on my mac at least), and the
"silent sound" solution works very well inded...

Louis



---
Subscribe to the digest:
<mailto:<email address removed>>
Unsubscribe:
<mailto:<email address removed>>