Welcome to PGD
If this is your first visit, be sure to check out the FAQ by clicking the link above. You have to register before you can post.
If you have recently signed up, please make sure you log in so that your activity is registered. This is required for automatic promotions to work and to ensure your account is not deleted during the registration process.
AthenaOfDelphi
Originally Posted by Andreaz Sleep(Time > 0) may cause the thread to sleep for to long due to the window times of the scheduler (16ms on win if i'm not misstaken), a way that quake used that works really well even for unthreaded applications is: [pascal] UpdateTime:= GetCurrentTime; repeat Sleep(0); CurentTime:= GetCurrentTime; until CurentTime- UpdateTime >= UpdateTime; [/pascal][/pascal] it's precise but eats the cpu instead
From brazil (: Pascal pownz!
Forum Rules
Bookmarks