Coder Social home page Coder Social logo

Comments (7)

X-20A avatar X-20A commented on September 17, 2024 1

As for latency, there is no other way but to measure it in the end. In fact, it could be that it is hardly a problem.
However, it is inevitable that the code will become more complex

from kancolle-replay.

X-20A avatar X-20A commented on September 17, 2024

Besides the sheer volume of work, other concerns would include.

  • Will the addition of this functionality delay the original simulation process?
  • Won't that clutter up the code writing?

Honestly, I can't think of a concrete solution for this.

from kancolle-replay.

ha15224 avatar ha15224 commented on September 17, 2024

Frankly I have no knowledge of how the internal computation/ source code works within the simulator, but wouldn't an option a user can tick to include the time measurements within the simulator settings be an easy fix?

from kancolle-replay.

X-20A avatar X-20A commented on September 17, 2024

It would be easy to prepare a flag and switch.
However, a description of the time measurement is required for every operation (either to be added sequentially or to be logged and calculated together).

from kancolle-replay.

ha15224 avatar ha15224 commented on September 17, 2024

That would be necessary as I can imagine. That being said, I do think the order of computational complexity shouldn't change (e.g. less than double the current speed as it is only doing an additional sum for every existing operation) with this feature. Of course, only users who wish to obtain these statistics would have reason to wait the extra dozen seconds.

from kancolle-replay.

fourinone41 avatar fourinone41 commented on September 17, 2024

It's an interesting idea, but yeah my main concern is the amount of work, not just to start but to maintain (e.g. still need update if devs add something niche like atoll node attacks, Momochi anti-install animation), not sure if that's something I'm willing to maintain for now.

Won't that clutter up the code writing?

My idea is to turn on API generation which is used for Watch a Replay, use that to calculate time (as animations are directly tied to API), all separate from sim code. But yes that would increase sim time and would need a flag.

Of course also can't handle variables such as network latency, asset loading/caching, player's speed clicking yasen button, etc.

from kancolle-replay.

ha15224 avatar ha15224 commented on September 17, 2024

I would greatly appreciate it if you were to entertain the possibility. Thank you for your attention and feedback.

from kancolle-replay.

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.