Jump to content
  • Advertisement


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


Restricting CPU Usage

This topic is 5227 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

Hi, I''m writing a CPU-hungry simulation in C# and I''d like to add a slider bar that lets the user adjust how much of the CPU the simulation can use. So for example I could set it to 60% and never have my program''s CPU usage go above 60%. I''ve noticed that other simulation programs (like folding@home) have this option. How can I accomplish this? Is it an API call? Or do I have to have my program constantly monitor it''s usage and Sleep() when it is too high? ---------------------------------------- Let be be finale of seem, seems to me. ---------------------------------------- Coding: http://www.stanford.edu/~jjshed/coding Miscellany: http://www.stanford.edu/~jjshed

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!