Trigary / Iodine

A Minecraft mod - server plugin pair that adds custom GUIs and overlays. No more inventory and chat menus!
GNU General Public License v3.0
24 stars 0 forks source link

Keep track of modified GUI elements for GUI updates #3

Closed Trigary closed 5 years ago

Trigary commented 5 years ago

Currently IodineGuiImpl#update() serializes and sends all GUI elements to the clients, regardless of them having been changed or not. This should be fixed by keeping track of these "dirty" GUI elements in a Set and serializing only them.

A better solution would be only serializing the fields which have been changed, but that would require each field to have its own ID or some other way of determining which fields have been received. The improvement described in this issue is far easier and should be implemented first. Once that's done, a new issue with this better solution will be created.