Git Product home page Git Product logo

Comments (3)

gotmachine avatar gotmachine commented on August 15, 2024

I doubt it. Commnet has some operations that are by nature O^(body count) and O^(vessel count).
As far as I know, CommNet is decently optimized.

I believe the only way to any significant improvement would be to re-implement it entirely using burst/jobs (see what RealAntennas is doing for example), which would be a large project in itself. I doubt a regular managed threaded implementation would help much.

from kspcommunityfixes.

JonnyOThan avatar JonnyOThan commented on August 15, 2024

Two things:
-it looks like there is some throttling code in there - if I understand it correctly, it's only supposed to update every 5 seconds for an unpacked vessel and every 0.5 seconds for a packed one. Empirically, this is not working and it's updating every frame.

-A naive system that checks every pair of vessels would be O(vessels^2) but it should be possible to leverage the nature of local clusters to cut down on the amount of work to do. You can calculate the antenna strength required at each body to reach each other body, and then just skip pairs that are clearly too far. But I'm speculating here.

from kspcommunityfixes.

gotmachine avatar gotmachine commented on August 15, 2024

it's only supposed to update every 5 seconds for an unpacked vessel and every 0.5 seconds for a packed one. Empirically, this is not working and it's updating every frame.

Do you have Kerbalism installed ? It specifically disable the CommNet throttling. Other mods might also be doing that.

I don't say there isn't room for performance improvements, but I'm not willing to include quick-and-dirty "lets disable that" patches that will have unwanted side effects at one end or another of the modding ecosystem.

I would suggest first identifying exactly where the performance bottlenecks are. If you find ways to improve perf while keeping both user facing functionality and API surface 1:1 with stock, that would be great, but I don't have much hope.

from kspcommunityfixes.

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.