SetProcessAffinityMask
by Eric Preisz · in Torque Game Engine · 01/16/2008 (12:19 pm) · 2 replies
Void Platform::init()
{
SetProcessAffinityMask( GetCurrentProcess(), 1 );
This line above prevents windows from using more than one core. By removing the line above, I was able to see my threads run on more than one core.
Now windows is able to select the other core if it so desires. Saw a massive jump in framerate for my multi-threaded app.
{
SetProcessAffinityMask( GetCurrentProcess(), 1 );
This line above prevents windows from using more than one core. By removing the line above, I was able to see my threads run on more than one core.
Now windows is able to select the other core if it so desires. Saw a massive jump in framerate for my multi-threaded app.
About the author
Manager, Programmer, Author, Professor, Small Business Owner, and Marketer.
#2
01/17/2008 (1:05 am)
Yes, TGE isn't opted for multiple processors, I thought I even read on a TGEA thread that there are parts that actually dislike it to be run on a different core parallel
Torque Owner Cinder Games
How does this help me? :p
while torque does have a similiar command, it sent my frame rate down to 5.5 when i commented it out.