[HELP] reducing lag

Posts 16–18 of 18 · Page 2 of 2
Quote Originally Posted by BloodSkin View Post
so if i were to set a number of ptc commands to one function would i sleep after every ptc or after every call to that function?
Umm just keep the Sleep time at 100
Quote Originally Posted by whit View Post


Umm just keep the Sleep time at 100
but where do i put it? example:

Code:
void chamsbox0()
{
	PTC("SkelModelStencil 0" );
	PTC("ModelDebug_DrawBoxes 0" );

}

void main()
{
Sleep(100)
chamsbox0()
}
or

Code:
void chamsbox0()
{
	PTC("SkelModelStencil 0" );
	Sleep(100)
	PTC("ModelDebug_DrawBoxes 0" );
	Sleep(100)
}

void main()
{
chamsbox0()
}
EDIT: ok, so because i am using the while function, and since its is always true that it is running, it is going to try to redo it as fast as it can. i misunderstood that part and was thinking it worked like an if statement in mirc which does its job one time then finishes.
Copy!!!
You are copying what I said! I am the one who discovered that!

Quote Originally Posted by MugNuf View Post
Just put Sleep(50); above every hotkey.

Example:

void main()
{
bool sdfsdf = false;
while(true)
{
Sleep(50);
if(getasynckeystate(vk_numpad0) {
if(sdfsdf) {
PTC COMMAND HERE
sdfsdf = false;
} else {
PTC COMMAND HERE
sdfsdf = true;
}
}

Then when your making another one, put Sleep(50); right below the one above it, then make another hack. Got it?
Posts 16–18 of 18 · Page 2 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us