I have been programming for a little while (2 years or so) and I only know a couple languages. I have been wondering for a while how you would program something so that it always runs the same speed on any computer all the time (for instance, all games nowadays don't run faster on faster computers). I have tried googling but have been unable to figure it out. I know about "delay" type statements that basically just eat up a certain amount of processor operations, and ones that delay for a certain length of time, but without knowing how long it took for operations between delays this would not help. I also know of time classes that allow you to measure time, but only to the nearest second (I assume from an internal clock). Maybe I would need a class that allowed to nearest milisecond? Seems like it would be really tricky to implement...
If you know, please let me know :) and if it's too complicated or something to explain here then the broad stroke or a reference is fine
2007-02-14
14:23:05
·
3 answers
·
asked by
Anonymous
in
Computers & Internet
➔ Programming & Design