Chessnut / NutScript

A free role-play framework for Garry's Mod.
http://nutscript.rocks
MIT License
94 stars 77 forks source link

Excessive Network Usage with Storage Update. #74

Closed rebel1324 closed 10 years ago

rebel1324 commented 10 years ago

Currently, Nutscript's Storage Handling the inventory of the storage with NetTable.

This means, Everytime the storage updates the server has to send entire table of inventory to all clients. This takes tons of network usage. This is not very efficient and very unsecured.

I ran a server with 50+ storages with random storage loot plugin. I had 15+ players on the server and the server freezed almost 5~15 seconds when random storage loot plugin updates every storage on the world.

Because the server had to push 50+ storage's inventory to 15+ player's client.

I have to change storage plugin's structure.

Chessnut commented 10 years ago

Only deltas are sent.