[C++] speed up programs
3 posters
RUSES :: Programming :: Code Snippets
Page 1 of 1
[C++] speed up programs
ok so if u guys are using windows u can change the priority of a program
//to change program priority.
HANDLE hCurrentProcess = GetCurrentProcess();
^^^^
in the header area use this handle prototype
int main(){
//setting the program priority to speed up the program.
then at the top of main VVVV
SetPriorityClass(hCurrentProcess, HIGH_PRIORITY_CLASS);
//to change program priority.
HANDLE hCurrentProcess = GetCurrentProcess();
^^^^
in the header area use this handle prototype
int main(){
//setting the program priority to speed up the program.
then at the top of main VVVV
SetPriorityClass(hCurrentProcess, HIGH_PRIORITY_CLASS);
Re: [C++] speed up programs
Nice!
This should work in C as well
This should work in C as well
Alex- Posts : 67
Join date : 2012-02-23
Location : Come at me bro
Re: [C++] speed up programs
Thanks for this.
Quick note for people: if you haven't already, you'll need to #include <Windows.h> for this to work.
Quick note for people: if you haven't already, you'll need to #include <Windows.h> for this to work.
Charlie- Posts : 16
Join date : 2012-02-23
RUSES :: Programming :: Code Snippets
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum