Sleep(int Amount);
Is there a way I can Sleep Gordon's PTC Method?
Whit's v1 base is giving me a whole lot of lag and I think it's the PTC Method causing it....Code:typedef int (__cdecl* RunConsoleCommand_t)(char* cmd); RunConsoleCommand_t pRunConsoleCommand = (RunConsoleCommand_t)
Last edited by MEkhi2; 12-05-2010 at 03:24 AM.
Sleep(int Amount);
MEkhi2 (12-05-2010)
Sleep(100); after pushing the commands
MEkhi2 (12-05-2010)
So put it like this?
Code:if ( showfps > 0 ) pRunConsoleCommand ("ShowFps 1"); Sleep(100); }else{ pRunConsoleCommand ("ShowFps 0"); Sleep(100);
Code:if ( showfps > 0 ){ pRunConsoleCommand ("ShowFps 1"); }else{ pRunConsoleCommand ("ShowFps 0"); } if ( nx > 0 ){ pRunConsoleCommand ("SkelModelStencil 1"); }else{ pRunConsoleCommand ("SkelModelStencil 0"); } Sleep(10); }
Last edited by Alessandro10; 12-05-2010 at 05:24 AM.
MEkhi2 (12-05-2010)
Last edited by MEkhi2; 12-05-2010 at 05:56 AM.
Another method more effective
In Global
Code:int showfps = 0; int showfps1 = 0;Code:if( showfps > 0 ){if( showfps1 != showfps ){ pRunConsoleCommand ("ShowFps 1"); showfps1 = showfps; } }else{ if( showfps1 != showfps ){ pRunConsoleCommand ("ShowFps 0"); showfps1 = showfps; }}
Last edited by Alessandro10; 12-05-2010 at 06:01 AM.
MEkhi2 (12-05-2010)
Gah, hacks turn on but don't turn off...
Before else, you put a showfps 1
After Else showfps 0