Should program use 85% cpu?

My project linux outdoor hunter , using code simular to aliens, is using about
85% cpu resources. Is this normal?

My project linux outdoor hunter , using code simular to aliens, is using
about
85% cpu resources. Is this normal?

Depends on what your system is. If it’s a fairly decent configuration, I’d
say that (A) it’s ridiculous (B) you may have gotten yourself stuck into
some sort of ugly loop somewhere, so that instead of blitting a deer once
per frame, you blit it sixty thousand times/frame.

Rethink things.

Nicholas
vining at pacificcoast.net
"Did you have Aural Sex back then?" “Uh… sure. The walls were very thin.”

----- Original Message -----
From: tonymaldon@concentric.net (Tony M.)
To: sdl at lokigames.com
Date: Thursday, May 18, 2000 7:24 PM
Subject: [SDL] Should program use 85% cpu?

Yup.On Thu, 18 May 2000, Tony M. wrote:

My project linux outdoor hunter , using code simular to aliens, is using about
85% cpu resources. Is this normal?

Martin

Bother! said Pooh stuffing Jim’s useless corpse into a dustbin.

If your blitting as many frames as you can per second then I would say 85%
is pretty normal.On Thu, 18 May 2000, Nicholas Vining wrote:

-----Original Message-----
From: Tony M.
To: sdl at lokigames.com
Date: Thursday, May 18, 2000 7:24 PM
Subject: [SDL] Should program use 85% cpu?

My project linux outdoor hunter , using code simular to aliens, is using
about
85% cpu resources. Is this normal?

Depends on what your system is. If it’s a fairly decent configuration, I’d
say that (A) it’s ridiculous (B) you may have gotten yourself stuck into
some sort of ugly loop somewhere, so that instead of blitting a deer once
per frame, you blit it sixty thousand times/frame.

Rethink things.

Nicholas
vining at pacificcoast.net
"Did you have Aural Sex back then?" “Uh… sure. The walls were very thin.”

Martin

Bother! said Pooh, as he fell into the nitric acid.

If your blitting as many frames as you can per second then I would say 85%
is pretty normal.

As long as the X server takes the rest. Otherwise he’s wasting 15% CPU
doing nothing.

If your blitting as many frames as you can per second then I would say 85%
is pretty normal.

As long as the X server takes the rest. Otherwise he’s wasting 15% CPU
doing nothing.

My attitude was that as far as I know, he was just blitting a few sprites on
the screen, which shouldn’t gobble 85% of your CPU resources. From what he’s
been saying, it doesn’t sound like it should gobble 85%.

Nicholas

----- Original Message -----
From: f91-men@nada.kth.se (Mattias Engdegard)
To: sdl at lokigames.com
Date: Friday, May 19, 2000 8:01 AM
Subject: Re: [SDL] Should program use 85% cpu?

I didn’t see the code but if he show just two sprites on screen as
FAST as possible it could take these times.
But the normal thing is that the time is taken by the X server.

Miguel
http://www.arianne.cx