Page 1 of 1

Render each frame in different cores.

Posted: 30 Oct 2017, 14:31
by ajira2
I had an idea.

How about detecting the number of cores of the CPU in engine.cpp and processing each call to frame() in a different core to improve the performance?

It's a good idea? Or isn't possible because dependencies between frames?

I will try to compile the code, I'm starting with it. Noob.

Image

Re: Render each frame in different cores.

Posted: 30 Oct 2017, 16:16
by Deltaxus
Rendering is done in the graphics processing unit. Software Rendering (rendering in the CPU) is not widely used due to performance drawbacks, CPU's are simply not designed for this kind of data processing.

Re: Render each frame in different cores.

Posted: 30 Oct 2017, 16:23
by ajira2
Ohh of course, i see. My mistake. Thanks.
What areas could be threaded to speed up? Physics, sound, ai?

Re: Render each frame in different cores.

Posted: 30 Oct 2017, 17:56
by kuyondo
Im no dev or pro, but i think AI or physics should have some attention.