#define Whit_Is_Awesome 200
void blah()
{
while(1){
Sleep(Whit_Is_Awesome);
//Do some hacks
Sleep(Whit_Is_Awesome);
}
}
Even if you do create a thread for each seperate hack, the Direct3D hooks are kind of much harder to fix, that doesn't work here. Basically you're taking a function that is iterated in every frame ( everything between BeginScene() and EndScene() happens every frame ) and you're adding your own code to it, making it have to do more per frame, obviously... Creating a thread wont solve this, it's still going to have to jump somewhere in your DLL to your function and execute your long code instead of the original.
So, yeah, multi- threading could work for the other hacks though..
Sleep() is not for noobs, there are no 'noob' functions, that was just a retarded comment..
#define Whit_Is_Awesome 200
void blah()
{
while(1){
Sleep(Whit_Is_Awesome);
//Do some hacks
Sleep(Whit_Is_Awesome);
}
}