realbasic-nug
[Top] [All Lists]

Re: Application getting slower

To: REALbasic Network Users Group <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Application getting slower
From: Totte Alm <totte at code66 dot se>
Date: Wed, 27 Feb 2002 10:06:09 +0100

On onsdag, februari 27, 2002, at 09:58 , ralf dot funke at systematics dot de 
wrote:


Since I cannot find anything in the archives: What can I do to make my
applications stop getting slower?


Are you running on a powerbook or stationary machine?
OSX or OS 9?

Whenever I put code into a timer (e.g. to calculate a new generation in a Life game) I see that the built application runs fine at the beginning but
after a while it gets slower.
Like from 5 ticks up to 60 ticks from one generation to the next. When
moving the mouse it is fast again. I have a pragma disablebackgroundtasks but that does not seem to make any difference. I tried to put the code into
a thread but that makes things worse. Any suggestion?

Sounds like the good ol' processmanager thinks you are not doing anything usefull and lower your prio. There IS an ugly thing you can do using my T3Proc plugin (dunno if that version is on the web yet), but it can be done with declares also, but was easier to do with a plugin.

You can set a timer that makes a call to WakeUpProcess which will give WNE based apps a call to WNE.
The declares are somewhat ugly, thats why I put it into a plugin.

If you are interested, I can mail you the latest version of the Plugin to test with.


// Totte



<Prev in Thread] Current Thread [Next in Thread>