Search Unity

Problems with Physics and ECS

Discussion in 'Entity Component System' started by dienat, May 18, 2019.

  1. dienat

    dienat

    Joined:
    May 27, 2016
    Posts:
    417
    I have tried Unity Physics Examples in https://github.com/Unity-Technologies/EntityComponentSystemSamples but besides gives a lot of errors at start as need you to install some other packages than the ones required in the documentation, in the end everything appears with pink shaders, i change the shader and finally press play and i see frames drop up to 30fps for just the collision of a few primitive colliders colliding in the scene, where is the performance? if i used ECS is to get better performance not worse
     
  2. TRS6123

    TRS6123

    Joined:
    May 16, 2015
    Posts:
    246
    Did you enable burst?
     
  3. DreamingImLatios

    DreamingImLatios

    Joined:
    Jun 3, 2017
    Posts:
    4,270
    Also enable synchronous compilation so that you don't get the lag spike for the first few seconds or so.
     
  4. dienat

    dienat

    Joined:
    May 27, 2016
    Posts:
    417
    Yes
     
  5. dienat

    dienat

    Joined:
    May 27, 2016
    Posts:
    417
    I had Asynchronous shader compilation active if that is what you meant
     
  6. DreamingImLatios

    DreamingImLatios

    Joined:
    Jun 3, 2017
    Posts:
    4,270
    I meant synchronous compilation in Burst. It's in Jobs->Burst->Synchronous Compilation in the menu bar.
     
    dienat likes this.
  7. dienat

    dienat

    Joined:
    May 27, 2016
    Posts:
    417
    Yes, that worked thanks