Skip to content

Add custom data batching  #1452

Open
Open
@Pirulax

Description

@Pirulax

This is a separate thread of #638. I'd like to discuss custom data batching.
My thoughts are that it shouldn't be too hard, but we need to consider a few things:

  • Is it actually worth it? Does it decrease CPU / Network usage for the client / server?
  • The biggest overhead in setElementData is triggering the event system(takes 70% of the execution time)
  • Can we could write the content of the big packet on a separate thread, after allocating the bitstream, and such? Is it thread safe? Is it worth it?
  • What would be the default sync interval? 50 ms? Would we gather enough data to be worth it to make this change, in such a small time period?
  • Could it possibly break existing scripts because of the delay?
  • When do we merge the PR? It probably needs to be merged in 1.6, as we must remove the separate element data packets.

A few things to keep in mind when working on this issue:

  • If the client(s) update the same element data that is in the send buffer, we must update the buffered element too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions