MidLevel / Ruffles

Lightweight and fully managed reliable UDP library.
MIT License
212 stars 28 forks source link

Flush Network Logic from Main Thread #24

Open dungeon2567 opened 4 years ago

dungeon2567 commented 4 years ago

Flush Network Logic from Main Thread (RuffleSocket.FlushMessages())

TwoTenPvP commented 4 years ago

What is the purpose of this exactly? To delay the running of connection.Update() to the end of the frame?

dungeon2567 commented 4 years ago

Yes, run connection.Update() exactly at end of the frame (when all packets are written and ready to be sent)