extremeheat / node-raknet-native

Simple native RakNet bindings for Node.js
13 stars 5 forks source link

lower sleep time #19

Closed GameParrot closed 1 year ago

GameParrot commented 1 year ago

should improve ping

extremeheat commented 1 year ago

Ah, good catch. Ideally we should have some sort of semaphore/mutex inside RakNet to properly synchronize the RakNet network and JS threads, as opposed to this kind of polling. This current change will spend more CPU cycles, however it seems better than passing down excess latency to users. Thanks for looking into it.