Hi,
I'm currently using *cocos2d-x* with *Lua* for *game client side* programming. And searching for a network library. I consider use libuv or luv <https://github.com/luvit/luv> (a Lua binding for libuv) as my client side networking library (mainly for TCP). I can run libuv loop in *UV_RUN_ONCE* or *UV_RUN_NOWAIT* mode each frame in game main loop (main thread). When libuv received networking data, it calls my callback Lua functions in game main thread (where the Lua VM runs), and my Lua code decrypt and decode and process the message. My question is: 1. 1. will libuv make my game mainloop slow and drop my fps when networking traffic goes up (of course when within a reasonable message size and amount)? 2. 2. need I put libuv loop in another thread and wrap the callback delayed call my Lua functions in main thread? -- You received this message because you are subscribed to the Google Groups "libuv" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/libuv. For more options, visit https://groups.google.com/d/optout.
