Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[C++ DLL] Any way i can keep a while/for loop without...

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
AwayTheWInd
Master Cheater
Reputation: 0

Joined: 11 Sep 2007
Posts: 450

PostPosted: Wed Jan 28, 2009 9:45 am    Post subject: [C++ DLL] Any way i can keep a while/for loop without... Reply with quote

Any way i can keep a while/for loop up without freezing/lagging the thread?
If I don't use a sleep, it'll crash, and if I use a sleep, it'll lag...

Help?

_________________
Back to top
View user's profile Send private message
dEagle
Expert Cheater
Reputation: 0

Joined: 17 Jun 2006
Posts: 225
Location: CheatEngine Forum

PostPosted: Wed Jan 28, 2009 9:49 am    Post subject: Reply with quote

Try using Sleep(20); that shouldent hurt,
else create a new thread for just only that function.
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Wed Jan 28, 2009 2:16 pm    Post subject: Reply with quote

Just Sleep(10);

If you really need less, set it with timeBeginPeriod / timeEndPeriod
Back to top
View user's profile Send private message
talkerzero
Grandmaster Cheater
Reputation: 1

Joined: 24 Jul 2008
Posts: 560
Location: California

PostPosted: Sun Feb 08, 2009 11:23 pm    Post subject: Reply with quote

Irwin! When the fuck did you come back here again?
And, just use Sleep(1).
Back to top
View user's profile Send private message Visit poster's website
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Sun Feb 08, 2009 11:33 pm    Post subject: Reply with quote

talker0 wrote:
Irwin! When the fuck did you come back here again?
And, just use Sleep(1).


Sleep(1) won't do anything if you don't set it with timeBegin/EndPeriod
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites