RabidOwlbear / osr-helper

14 stars 2 forks source link

Are there any features in this module that cause a lot of communication with the server? #35

Open ZzNoah opened 10 months ago

ZzNoah commented 10 months ago

I have observed this in my usage. It passes a lot of data over websocket, probably thousands of times per second, taking up the entire bandwidth of my server.

RabidOwlbear commented 10 months ago

I see the constant socket traffic, however I still see it with all of my modules disabled. The bulk of the traffic appears to be real time updating of the mouse position, most likely from the core software updating the ghost cursors on all client screens. I did not find any excessive socket traffic from my modules in a standalone server or on the forge.

ZzNoah commented 10 months ago

log Requests of length 600 to 900 are performed approximately 1000 times per second per client. I don't know how to reproduce this problem. Would you please check this for me?

RabidOwlbear commented 10 months ago

these functions only run when world time is updated. My modules do not have any mechanism that advance the game time without user interaction. This may be caused by a separate module making repeated world time updates.

On Fri, Nov 10, 2023 at 9:56 PM ZzNoah @.***> wrote:

[image: log] https://user-images.githubusercontent.com/34055623/282222273-5a7384f1-abc9-40fe-8d3d-912766acdd82.png Requests of length 600 to 900 are performed approximately 1000 times per second per client. I don't know how to reproduce this problem. Could you please check this for me?

— Reply to this email directly, view it on GitHub https://github.com/RabidOwlbear/osr-helper/issues/35#issuecomment-1806706030, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARC26VHBEYBHQZSGWCLB6ZTYD4HSHAVCNFSM6AAAAAA7GNXPYOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBWG4YDMMBTGA . You are receiving this because you commented.Message ID: @.***>

RabidOwlbear commented 10 months ago

on further review this appears to be something updating the turn data setting repeatedly. I cannot reproduce this behavior on my end. Is this behavior the same in all game worlds?