Just a simple question, could Update and FixedUpdate happen at the same time?
Update:
a = 1; b = a;
Fixed Update:
a = 2; b = a;
Could b become 2 in update as an example?
Just a simple question, could Update and FixedUpdate happen at the same time?
Update:
a = 1; b = a;
Fixed Update:
a = 2; b = a;
Could b become 2 in update as an example?
The only way anything on a computer can happen “at the same time” is if you have multiple processors on the same computer. The only way you can have a single program run on more than one processor is to use threads. Threads are very special with memory management, because they can access mutable variables. A thread cannot mutate a variable from another thread without a possible segmentation fault.
Update
and FixedUpdate
both run on the same thread, so no… they can never run at the same time.