GithubHelp home page GithubHelp logo

Comments (6)

Shatur avatar Shatur commented on May 24, 2024

So it's basically pause replication after specific tick? Make sense to me.
I think it should be done globally and once we will have rooms - per room.

from bevy_replicon.

Shatur avatar Shatur commented on May 24, 2024

No longer relevant after #16.

from bevy_replicon.

UkoeHB avatar UkoeHB commented on May 24, 2024

This is still relevant, #116 still scans the entire world every tick even if there is nothing to replicate.

from bevy_replicon.

Shatur avatar Shatur commented on May 24, 2024

But there is not such thing as last changed tick. I feel like it's something that should be solved on Bevy side. They considering adding change detection on archetype and entity levels.

from bevy_replicon.

UkoeHB avatar UkoeHB commented on May 24, 2024

Right, that's why I said "it is [sometimes] feasible to manually track the last tick where something in the world was modified".

from bevy_replicon.

UkoeHB avatar UkoeHB commented on May 24, 2024

Instead of global last-change tick, we could do TickPolicy::Manual and add a system that can be manually scheduled which resends the last-buffered component updates that haven't been acked (EDIT: acks are tracked per-update message so this works out well).

Since renet uses Bytes, we can just store a copy per client. Very cheap, no need to allocate again.

from bevy_replicon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.