Babulesnik
Member
|
The same execution speed on different computers
There is for example a code:
Code:
Bool Update()
{
static Int I;
I++;
return true;
}
But on the strengths and weaknesses Computer literacy rate of increment for some time will be different. How can I solve this problem?
|
|
07-15-2011 07:21 AM |
|
Dandruff
Member
|
RE: The same execution speed on different computers
Yeah, i had this problem, very easy to fix though. Just add I+=100*Time.d();
*100 because time.d() is in milliseconds ( you can probably use something other than d() so you won't need *100 but i haven't tried yet )
|
|
07-15-2011 09:28 PM |
|
Babulesnik
Member
|
RE: The same execution speed on different computers
(07-15-2011 09:28 PM)Dandruff Wrote: Yeah, i had this problem, very easy to fix though. Just add I+=100*Time.d();
*100 because time.d() is in milliseconds ( you can probably use something other than d() so you won't need *100 but i haven't tried yet )
Thank you very much.
|
|
07-15-2011 10:43 PM |
|