Saishy / TinyBirdNet-Unity

[DISCONTINUED] A high level API for making networked games in Unity, utilizes https://github.com/RevenantX/LiteNetLib
MIT License
96 stars 8 forks source link

Sorry to bother you again... #6

Closed love451990105 closed 6 years ago

love451990105 commented 6 years ago

_20180911150736 image

Why not use FixedUpdate directly just like Update did?

Saishy commented 6 years ago

Hi, no worry!

So about that is because WaitForFixedUpdate will always run after all physics calculation, making sure the game frame will be sent with the latest data to clients.

https://docs.unity3d.com/Manual/ExecutionOrder.html

On Tue, Sep 11, 2018, 04:16 yjh_sam notifications@github.com wrote:

[image: _20180911150736] https://user-images.githubusercontent.com/43029566/45343868-b047f480-b5d4-11e8-8c78-da27e878b7b6.png [image: image] https://user-images.githubusercontent.com/43029566/45344178-93f88780-b5d5-11e8-9fce-f5269ebb7592.png

Why not use FixedUpdate directly just like Update did?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Saishy/TinyBirdNet-Unity/issues/6, or mute the thread https://github.com/notifications/unsubscribe-auth/AB6zzHrmR76cb_k-fxjAlNlX51hUj7MXks5uZ2NcgaJpZM4Wiu1z .

love451990105 commented 6 years ago

👍😘thank