title: Reducing the CPU usage of a thread or process
body: <p>There a bunch of other questions like this, but the only substantial answer I've seen is the one where you use <code>SetPriorityClass</code> to give priority to other processes. This is not what I want. I want to <em>explicitly</em> limit the CPU usage of my thread/process.</p>
  
  <p>How can I do this?</p>
  
  <p><strong>Edit:</strong> I can't improve the efficiency of the process itself, because I'm not controlling it. I'm injecting my code into a game which I'd like to 'automate' in the background.</p>