08-03-2021, 07:05 PM
(08-03-2021, 08:24 AM)josemendez Wrote: The code, as it is written, should iterate through all particles once. As soon as it finds a collider that's not named "Piso", it will unsubscribe from the collision event and the script will do nothing from that point on.I already saw my error when using VR the fixed time is updated when doing play to 0.0111 and it starts to call twice, but if I reduce maximium allowed timestep to 0.0111 so that it is called once, the animations and everything is altered, I can't find one practical solution
Iterating trough all particles once is of course not enough to bring fps from 50 to 17, that's around 38 ms/frame which is a lot of time. If FixedUpdate() is only called once, then what's taking up all that time in the profiler? Did you see anything unusual in the profiler?