Search Unity

Bug Code changes behavior when built. Updated from 0.17 to 0.51 (solved)

Discussion in 'Entity Component System' started by mikaelK, Jun 20, 2022.

  1. mikaelK

    mikaelK

    Joined:
    Oct 2, 2013
    Posts:
    284
    If the scene looks weird its because just updated to URP. Looks like editor only bug in terrain instancing


    Here is the issue

    Before. Missiles gets side ways push and behave more like missiles.


    After. No push, super fast acceleration. Buggy behavior on turrets not seen on the videos
     
  2. mikaelK

    mikaelK

    Joined:
    Oct 2, 2013
    Posts:
    284
    Was caused by having high frame rate(600 fps) which means I have code that doesn't scale well. After googling I found out that I should put my missile code to fixed update

    Edit started using fixed delta time on update and update in FixedStepSimulationSystemGroup.
    Now it has the correct behavior but everything goes 10 times faster in the built.

    My mistake was multiplying it second time later.
    upload_2022-6-20_19-49-1.png
     
    Last edited: Jun 25, 2022