1. Trouble with the game?
    Try the troubleshooter!

    Dismiss Notice
  2. Issues with the game?
    Check the Known Issues list before reporting!

    Dismiss Notice
  3. Before reporting issues or bugs, please check the up-to-date Bug Reporting Thread for the current version.
    0.37 Bug Reporting thread
    Solutions and more information may already be available.

How can I tell what core a car is running on?

Discussion in 'Troubleshooting: Bugs, Questions and Support' started by ThreeDTech21, Mar 16, 2016.

  1. ThreeDTech21

    ThreeDTech21
    Expand Collapse

    Joined:
    Sep 27, 2013
    Messages:
    1,616
    I want to run a car on a parked CPU core, if its possible can I assign a car to a CPU? Core 7 and 8 are usually always parked on my CPU
     
  2. SuperNoob05

    SuperNoob05
    Expand Collapse

    Joined:
    Jan 4, 2015
    Messages:
    1,289
    AFAIK it's not possible to select what car to run a car on. However, you should be able to see what core a car is running on by using task manager's CPU performance thingy.
     
  3. Funky7Monkey

    Funky7Monkey
    Expand Collapse

    Joined:
    Oct 12, 2014
    Messages:
    977
    You can have BeamNG just use select cores. Go to Task Manager and go to Processes or Details (depending on version of Windows), right click the BeamNG process, click "Set Affinity" and select what core(s) you want BeamNG to run on. Be aware that ALL of BeamNG's threads will run on those core(s), not just vehicles.
     
  4. ThreeDTech21

    ThreeDTech21
    Expand Collapse

    Joined:
    Sep 27, 2013
    Messages:
    1,616
    I tried this but windows 10 is tricky, they seem to have moved the core affinity settings somewhere else or have completely removed it, Ill have to google a bit
     
  5. Funky7Monkey

    Funky7Monkey
    Expand Collapse

    Joined:
    Oct 12, 2014
    Messages:
    977
    It's Details on Win10
     
  6. SixSixSevenSeven

    SixSixSevenSeven
    Expand Collapse

    Joined:
    Sep 13, 2013
    Messages:
    6,958
    Win32 does not expose any setting allowing a program to determine which cores it runs on so its not something BeamNG can add. Literal only choice is the affinity setting.
     
  7. Scepheo

    Scepheo
    Expand Collapse

    Joined:
    Feb 10, 2015
    Messages:
    601
    Code:
    #include <iostream>
    #include <intrin.h>
    
    int main()
    {
        int info[4];
        __cpuid(info, 1);
       int core = (info[1] & 0xFF000000) >> 24;
       std::cout << "Running on " << core << std::endl;
       return 0;
    }
     
  8. SixSixSevenSeven

    SixSixSevenSeven
    Expand Collapse

    Joined:
    Sep 13, 2013
    Messages:
    6,958
    retrieves, doesnt set
     
  9. Scepheo

    Scepheo
    Expand Collapse

    Joined:
    Feb 10, 2015
    Messages:
    601
    Correct, but both the thread title and your post ("determine which cores it runs on") suggested retrieving, so I thought I'd clear that issue up. It wasn't until your reply that I realised the dual (and ambiguous, in this case) meaning of "determine".
     
  10. SixSixSevenSeven

    SixSixSevenSeven
    Expand Collapse

    Joined:
    Sep 13, 2013
    Messages:
    6,958
    " if its possible can I assign a car to a CPU?"
     
  11. Funky7Monkey

    Funky7Monkey
    Expand Collapse

    Joined:
    Oct 12, 2014
    Messages:
    977
    A couple screenshots to help you out.

     
  12. ThreeDTech21

    ThreeDTech21
    Expand Collapse

    Joined:
    Sep 27, 2013
    Messages:
    1,616
    Nice thanks!
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice