How to run single core on multi core

Discussion in 'General Hardware' started by one.123, Sep 29, 2007.

  1. one.123

    one.123 -0-;;

    Messages:
    231
    i have a quad-core cpu, and i found out after trying starcraft, that running it on a multi core processor generates an insane amount of lag. so im looking for a program that will let me use only 1 core when running certain programs. thanks in advance
     
  2. Sazar

    Sazar F@H - Is it in you? Staff Member Political User Folding Team

    Messages:
    14,905
    Location:
    Between Austin and Tampa
    Simply startup your taskmanager and select the process.

    Right click will bring up a menu, on the menu you will find SET AFFINITY.

    You should see a small dialog box with 4 cores listed.

    Uncheck all but 1 and voila, you are all set.

    This is built into windows btw, you don't need other tools.

    Cheers :)
     
  3. sean.ferguson

    sean.ferguson Moderator Folding Team

    Messages:
    1,693
    Location:
    Fife; Scotland
    cool, I wasn't aware of that function :)
     
  4. Sazar

    Sazar F@H - Is it in you? Staff Member Political User Folding Team

    Messages:
    14,905
    Location:
    Between Austin and Tampa
    Yah, I rock :cool:
     
  5. sean.ferguson

    sean.ferguson Moderator Folding Team

    Messages:
    1,693
    Location:
    Fife; Scotland
    Yes you do, I tried earlier but...

    :(
     
  6. Geffy

    Geffy Moderator Folding Team

    Messages:
    7,805
    Location:
    United Kingdom
    Is there a way to force an application to run on only one core though, something akin to the WinXP compatibility options
     
  7. Sazar

    Sazar F@H - Is it in you? Staff Member Political User Folding Team

    Messages:
    14,905
    Location:
    Between Austin and Tampa
    The "set affinity" does that for you. I am not sure if there is something that can be setup to FORCE it to run automatically w/o some kind of registry hacks or 3'rd party applications OR changing the command-line startup options.

    The last should be, technically, the easiest route to do it.
     
    kcnychief likes this.
  8. Geffy

    Geffy Moderator Folding Team

    Messages:
    7,805
    Location:
    United Kingdom
    Yeah I got that you could do it to an actively running process, but it was the persistence I think which was desired. Yeah the command line method or potentially running the exe through another program much like the UNIX nice(1) command.
     
    kcnychief likes this.
  9. American Zombie

    American Zombie Moderator Staff Member Political User

    Messages:
    2,934
    Location:
    Seattle
    Yes there is with the IMAGECFG tool. I just ran it on the Far Cry executable and now Far Cry runs on one core without having to task out/set affinity. I first read about imagecfg tool here then I found the tool here. It is also on the Windows NT 4.0 CD. I would suggest making a copy of your executable before running the tool just in case the result is not what you expected.
     
    Last edited: Nov 18, 2007
    Geffy likes this.
  10. Geffy

    Geffy Moderator Folding Team

    Messages:
    7,805
    Location:
    United Kingdom
    cool, take it it brands the exe with a big "SINGLE CORE" stamp much like cattle :p
     
  11. Perris Calderon

    Perris Calderon Moderator Staff Member Political User

    Messages:
    12,333
    Location:
    new york
    I believe you can write a bat file to do it but I wouldn't know how to do it