1. Limiting a Euphoria Program's CPU usage.

Hi! Thanks for your answers to my pixel question. I now have a terrible
problem of my euphoria program hogging CPU time when it's running
in the background. Anyone know a good way to limit its usage. I hope
I can pause the program for 1 to 2 seconds at a time without using
loops.

thanks again.. timmy

new topic     » topic index » view message » categorize

2. Re: Limiting a Euphoria Program's CPU usage.

On Mon, 20 Dec 1999 14:56:22 -0800, timmy <tim781 at PACBELL.NET> wrote:

>Hi! Thanks for your answers to my pixel question. I now have a terrible
>problem of my euphoria program hogging CPU time when it's running
>in the background. Anyone know a good way to limit its usage. I hope
>I can pause the program for 1 to 2 seconds at a time without using
>loops.
>
>thanks again.. timmy

Not knowing anything about your program, all I can do is throw some ideas
your way.

1.) If you are running Windows NT, you can lower the priority with Task
Manager.

2.) If your program has a delay routine that is just an empty loop, you
might want to consider using a Windows timer.  (You may not get the same
speed as an empty delay loop but you will gain at least 90% of your CPU
usage.)

It might help if you posted your code, then we can see what's hogging the
CPU.

-- Brian

new topic     » goto parent     » topic index » view message » categorize

3. Re: Limiting a Euphoria Program's CPU usage.

Brian Broker wrote:

> On Mon, 20 Dec 1999 14:56:22 -0800, timmy <tim781 at PACBELL.NET> wrote:
>
> >Hi! Thanks for your answers to my pixel question. I now have a terrible
> >problem of my euphoria program hogging CPU time when it's running
> >in the background. Anyone know a good way to limit its usage. I hope
> >I can pause the program for 1 to 2 seconds at a time without using
> >loops.
> >
> >thanks again.. timmy
>
> Not knowing anything about your program, all I can do is throw some ideas
> your way.
>
> 1.) If you are running Windows NT, you can lower the priority with Task
> Manager.
>
> 2.) If your program has a delay routine that is just an empty loop, you
> might want to consider using a Windows timer.  (You may not get the same
> speed as an empty delay loop but you will gain at least 90% of your CPU
> usage.)
>
> It might help if you posted your code, then we can see what's hogging the
> CPU.
>
> -- Brian


Hi   One of the programs I'm working on is making skins for
different windows programs. Everyone's getting tired of the
same old look to netscape and ie. My program will let people
choose different pictures and the program will display as much
of their picture as possilble by taking a screen capture and then
replacing the the 3-D button area colors and other areas with the
corresponding
pixels of their image. I've made a test program that worked ok but it
could'nt
adapt to any window that was open or its size. The first stage is going to be
easy.
the hard part is going to enable their background image to show up
when they choose menu items. And I have to get it to work very well with
older computers because web browsers already task the system. My biggest
project is going to be an interactive movie that people walk, fly, drive
through
and web pages and emails will show up while their walking along the sea
shore, or sitting on a park bench.etc.. this would be a simple project if
everyone were bussinessmen or
professionals just data mining but alot of poeple like to look at pictures
and movies.
and thinking of adding java capablities is a frieghtening thought. :)

sincerely timmy. :)

new topic     » goto parent     » topic index » view message » categorize

4. Re: Limiting a Euphoria Program's CPU usage.

timmy wrote:

>The hard part is going to enable their background image to show up
>when they choose menu items. And I have to get it to work very well with
>older computers because web browsers already task the system. My biggest
>project is going to be an interactive movie that people walk, fly, drive
>through
>and web pages and emails will show up while their walking along the sea
>shore, or sitting on a park bench.etc.. this would be a simple project if
>everyone were bussinessmen or
>professionals just data mining but alot of poeple like to look at pictures
>and movies.
>and thinking of adding java capablities is a frieghtening thought. :)
>
>sincerely timmy. :)

Other than programming techniques provided by the senior members of this
list, the best way to cut the total system load from a browser is to
get Opera from www.opera.com  The download is still slightly larger than
1 meg and it is as fast as greased lightning. It uses most Netscape
plugins. It costs $39 but is worth every penny. You can try it for 30
working days for free. I'm not advertising. I use it and I love it.

Everett L.(Rett) Williams
rett at gvtc.com

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu