- Home /
How many processing cores can Unity3D use?
I have the option of getting 3.33 ghz 4 cores processor, a 2.66ghz 6 cores or a 2.93 ghz 6 cores. I know that the middle one will be slower than the last, you don't have to tell me that. What I would like to know is how many cores can unity use? and what would work better, 4 fast cores or 6 slower ones?
Thanks in advance
Answer by tanoshimi · Jan 06, 2015 at 04:51 PM
It depends.
If you're talking about playing games, generally speaking, Unity applications are single-threaded. However, there's nothing to stop you creating your own threads using Mono's System.Threading
- just so long as they don't directly call into the Unity API. But you could, for example, offload AI calculations to a thread on a separate core. (the functions that are likely to benefit from being in a separate thread are unlikely to directly call into Unity anyway...)
As for creating games in the editor, certain editor functions are multithreaded through an internal job-scheduling system including Mecanim, Shuriken, Multithreaded renderer, Mesh skinning, and Cloth (according to this).
Thanks! I just didn't want to spend money and realise that it didn't work well in unity
It'll work fine. Whether you'll notice much performance difference or not is hard to say (you can have all the processing cores you want - if the performance of your game is not CPU-bound it's not gonna make a slight bit of difference)
Your answer
Follow this Question
Related Questions
Not Run while Aiming; Slope Terrain Making Object Faster 0 Answers
Speed car at the start of the game 1 Answer
Adding a speed to rotation 1 Answer