At 15:17 +0200 2001_10_23, Chris Aernoudt wrote:
>----- Original Message -----
>From: "Milo Mineur" <[EMAIL PROTECTED]>
>
>>  1- wat is worse: a CPU-usage of 100% or multitasking on windows?
>>  2- is it normal that a projector uses 100% of the CPU?

Yes.
<AFAIK>
However this is a complex matter, where 100% isn't just 100%, weird 
as that may seem.
Imagine that you use 100% in either a friendly way or a monopolistic way.
Projectors can use 100% in  a monopolistic way, for instance when 
they are doing tight repeat loops, but usually when they are making 
"open loops" on exitframe, they're using 100% in the friendly way ie: 
The projector is only using the machines "idle resources", and so it 
is quite easy for another process to obtain CPU power.
On preemptive multitasking systems, such as Win NT, a process can't 
completely hog the CPU.
</AFAIK>

If you want to make a resource-lean Windows-projector, you can the 
buddyApi command "baSleep". Say on every exitFrame you "sleep" 500 
mS, that will dramatically reduce cpu-usage.
When in the foreground, scale back up.

>  > 3- for the mac: is ther a testing programm for CPU-Usage?
>
>1 - I don't get your point

Well honestly, neither do I.

>2 - No, unless you are doing an infinite repeat loop or something really
>nasty

See above.

>3 - afaik multitasking on mac doesn't excist so what's the point

Well, sure the MacOS has Multitasking. However the "classic" MacOS 
uses "cooperative multitasking", which means that CPU-control is 
passed around to processes as a "token". Any process can then 
completely hog the CPU, until it itself decides to return the token. 
Lingo has the keyword "cpuHogTicks" which defaults to 20. This means 
that Director hands back the token after one third of a second. This 
can easily be seen as jerky animations, if the Mac is otherwise 
preoccupied with heavy processes, such as network transfers.
Setting the cpuHogTicks to a high number allows Director to 
monopolize the cpu for longer periods of time.
This is bound to change as MacOS evolves into the UNIX based MacOS X, 
which uses preemptive multitasking.

Cheers, Jakob

[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to