- Home /
Physics Unity Classic vs Physics Unity Dots
Hi everyone!
I am a beginner in Unity. I have a several doubts about Physics. What are the differences between Physics from Classic Unity and Unity Dots?and ,what are the advantages of Physics with DOTS?
I hope that you can help me.
Thanks in advance
Answer by icehex · May 06, 2020 at 07:24 PM
Hi, there are a number of amazing advantages, but I'll highlight the primary ones. Note that the Physics algorithms themselves might not be much different - it's the DOTS implementation that provides critical advantages:
1) The Jobs system is integrated, allowing you to multi-thread and use multiple CPU cores, or multiple virtual CPUs
2) Reduced overhead where 'entities' are stripped down and managed as data, and not as individual gameObjets like we have in standard Unity. This extends to the Physics engine. In standard Unity, the engine just starts coughing with well under 5000 actively managed objects, depending on your CPU. With DOTS performance is easily 10x better.
3) A new compiler called Burst, which you can call for specific sections of your code, particularly multi-threaded Jobs. It turns your code into machine code and I believe it strips out C# overhead code, giving you a clear processing benefit, and it is super easy to apply.
Check this video out from the Physics2D developer lead for DOTS, Melvyn May. Note that each dot in the simulation is an individual object! https://www.youtube.com/watch?v=1QwfZRwSisM
Your answer
Follow this Question
Related Questions
how to capsule cast from within Entities.ForEach job? ECS 1 Answer
Can not add PhysicsCollider at runtime Unity in ECS 1 Answer
2D 360 degress platformer example needed 0 Answers
(DOTS) How to slowly rotate an object to face a point? 1 Answer
Cannot move anything with pure ECS Physics instantiation 1 Answer