Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I divide the tasks for diffrent cores?

E.g. 4 Cores func1() -> core1

func2() -> core2

func3() -> core3

func4() -> core4

Is there special libary for this? Or do I have to use the old fashioned way of integrating the functions in the main loop ?

( I'm using C++ on Windows)

share|improve this question
up vote 2 down vote accepted

Even if there might be ways to select specific cores for parallel tasks, it's considered bad practice. Number of cores vary from machine to machine, and it's better to let the OS decide where to put the load. You should just create a few Windows threads and let the scheduler manage.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.