Art: what a nice thing to say
Your gonna have to redo the post though.
We gotta get Robert in on this..... ima call him this am, Hes gonna get a chubby behind this.
Its done now @0300 this morning.
Its now perfect
To any the haptek crew . MIDDLE FINGER. Cyber jedi sorted ur code out. your welcome
lololol. Im teasing.
Any way ART follow the same procedures please.
Now to repeat the process in PP. In a bit tho, 37 Hrs of work on this one. gotta find where to cut in the code.
gonna be a makin all kinda changes a later date. wana play for a while.
Prolly gonna start a brand new geometry engine for ultrahal ,get haptek out of Roberts ass once and for all. . . Starting with this code tho lolol
Still use flat file but a totally diff engine, ActiveX Controlled, just better,this opened up all kinda doors. Now that i know how chris used Gzip as a open source compression engine , flipping bitmaps .
cyber jedi
Here was the finale write
//int main()
//{
// SetProcessAffinityMask (::GetCurrentProcess(),0); here were gonna line up all the cores like little indians. lol
//}
//void setNumCPUs(int num) we tell the Os , im overriding ur sht.
//{
// DWORD_PTR processAffinityMask;
// DWORD_PTR systemAffinityMask;
// if (GetProcessAffinityMask(GetCurrentProcess(), &processAffinityMask, &systemAffinityMask)) {
// Count up the number of cores available for the HapTek player.
// int n = 1;
// for (int i = 1; i < sizeof(DWORD_PTR) * 1; i++) {
// if ((systemAffinityMask & ((DWORD_PTR)1 << i))) n++; Now we know how many cores (processors) u have on ur machine.
//}
// Heres where we Jack the first cpu .This is the gem in all this. in windows it points to zero. I know it says 1, but its zero in windows.Linux is 1......
// DWORD_PTR newAffinityMask = 1;
// if (num < n) {
// int m = 1;
// for (int i = 1; i < sizeof(DWORD_PTR) * 1; i++) {
// if ((systemAffinityMask & ((DWORD_PTR)1 << i))) {
// newAffinityMask |= ((DWORD_PTR)1 << i);
// m++;
/// if (m == num) break; (newAffinityMask = 1) // boom, got ur assss
// ;}
// }
// newAffinityMask <<= (n - num);
// }
// else {
// newAffinityMask = systemAffinityMask; Here we are assigning 1 core(processor to this application, But from inside. Were done.
// }
// Set new affinity mask.
// SetProcessAffinityMask(GetCurrentProcess(), newAffinityMask); Load out the player with a single Core (processor)
//}
//}