• Advertisement

Archived

This topic is now archived and is closed to further replies.

Those Damned Background Processes

This topic is 5494 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Some demos I found online (nehe, cone3d) and all of my programs tend to be jumpy and somewhat slower when there are other programs running in the background, especially an internet connection. But I don't see that happening with commercial games like warcraft. What kind of magical snippet(s) do these companies use to combat this problem? Is there anything I can do to help this? I'm using SDL/Opengl under windows 98 (but it happens with non-SDL programs too) peace -DA [edited by - deadalive on February 7, 2003 5:41:01 PM]

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
Most commercial games use threads and this can greatly improve performance. For instance, a few games that have seen the source code for put their event reading code in one thread, graphics code, in another and so forth. This way, the cpu doesnt waste time waiting in a loop in your program that isn''t doing anything.

SDL has support for threads. Read the docs and experiment.

Share this post


Link to post
Share on other sites
just to point out something, all processes contain a thread of execution
some programs use more than one, which can boost performance if done correctly (and slow it if done poorly)

Share this post


Link to post
Share on other sites
MS Visual C++ 6.0 comes with a process viewer, which you can delete any uneeeded processes.

/************************************************************/

SIMON SAY''S GET THE F-UP AND CODE SOME MORE.
YOUR NOTHING BUT A SILLY LITTLE WHORE.

Share this post


Link to post
Share on other sites
ahh ok so this must be why I''ve seen so many people wanting to know about multi-threading. I saw the threading commands in SDL docs but didn''t know why I''d ever want to use them.. thanks guys!
-DA

Share this post


Link to post
Share on other sites

  • Advertisement