Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Question looking for the promised performance

Discussion in 'Entity Component System' started by Volbran, Jun 25, 2022.

  1. Volbran

    Volbran

    Joined:
    Feb 24, 2020
    Posts:
    16
    scene from example project
    108ms!

    also compared the capsulcast in the old physics and the new cycle of 1000 repetitions with predetermined centers. I timed before the start of the cycle and immediately after.
    old: 6ms and the corresponding traces in the profiler
    new: 0 (actually double 0), that's only in the profiler full load and 5fps according to statistics.
    New physics faster? how do you cook it then?

    I expected to cross DOTS Physics(for CharController and CastRay) and Mecanim, get a raise. Now I'm not sure she's there.
     
  2. tertle

    tertle

    Joined:
    Jan 25, 2011
    Posts:
    3,631
    Your profiler shows nothing, what is causing your performance issues.

    I suspect at a bare minimum you have not turned off all the physics safety before profiling - jobs debugger and integrity checks make a magnitude of difference as well as safety checks.
     
  3. Volbran

    Volbran

    Joined:
    Feb 24, 2020
    Posts:
    16
    thanks for the answer. Yes it was all inclusive.
    after shutting down with a completely empty scene, the simulation takes 22 - 28ms at 1000 CollisionWorld.CapsuleCastAll
    1000 calls in old physics 5ms
    Maybe there is a secret in which system or group to operate with CollisionWorld?