About Store Forum Documentation Contact



Post Reply 
The same execution speed on different computers
Author Message
Babulesnik Offline
Member

Post: #1
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
Find all posts by this user Quote this message in a reply
Dandruff Offline
Member

Post: #2
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
Find all posts by this user Quote this message in a reply
Babulesnik Offline
Member

Post: #3
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
Find all posts by this user Quote this message in a reply
Post Reply