#Editor extremely slow when there are certain amount of ghosts

1 messages · Page 1 of 1 (latest)

rough basalt
#

Even I have i9 pc desktop to enter play mode at latest 2022.3.13f1 editor with dots netcode project, I still get around 10 fps when there are certain amount of ghosts. Will this performance issue will be addressed soon?

hushed quartz
#

Hey Lim. You'll need to provide more details (or link to a thread where you did previously). I.e.

  • Burst ON/OFF?
  • Editor Debug/Release?
  • Profiler dump showing the performance holes.
tranquil ingot
#

Would also like to note we recently added a bunch of optimisation when playing in the Editor (both release and debug).
Another important bit: if there are a large number of predicted ghosts and there are also frequent structural changes, there are some trouble with the prediction loop, that will do way more iteration than necessary (starting always pretty much from the oldest received update tick)

rough basalt
rough basalt
tranquil ingot
#

Of course, this is a well know problem of the Physics.SolveAndIntegrate that wait for another job to being able to dispatch the simulate phase. Is not even netcode specific.
Apart some changes in PhysicsPackage (possible), we can't do miracle there.
The only thing that I can suggest is that if the number of physics objects is limited, using a single threaded job using immediate mode could be faster.

rough basalt
tranquil ingot
#

in the build there are no integrity check and other stuff that remove some of this job dependency chains.
Also all safety checks are gone too. To better understand what happen, you need ot check the other job in the worker theads this is waiting for.