I have a simple DOTS project using Entities, Hybrid Renderer, and Physics that I’ve been working on as DOTS progresses. However, I’m wondering if there’s anything I’m doing wrong or what I can do to optimize this project overall. I’m not sure what areas I could change in my code to increase performance.
I noticed a few things so far. Before I switched my project to use the new Physics package, I could stack up thousands of entities without any issues. I used to be able to run 50,000 seamlessly but now it seems to have been halved without encountering a serious performance drop.
In addition, I noticed that my ball graphics (MovementSystem) stutter when moving, now that it’s Physics based. I’m not sure how to go about fixing the stutter that occurs when trying to move the player.
Hi @Akansh , I took a brief look at your project and it looks nice. As a potential improvement, I’d advise running CollisionSystem and MovementSystem jobs on worker threads instead of main, by replacing Dependency.Complete() with CommandBufferSystem.AddJobHandleForProducer(Dependency) and calling Schedule() instead of Run() .