GithubHelp home page GithubHelp logo

Comments (2)

nigelmegitt avatar nigelmegitt commented on June 12, 2024

I'm pretty sure I've made a big dent in the overall scale of this in bbc/Adhere#84:

  • the end times were being calculated wrongly, which is now fixed by updates to TimingCalculator and by correctly calculating the end time only when an element's descendants have been created. The effect of this bug was that some cues were active for way too long.
  • Parser.markSpeech() had a logic error: previously when iterating through an element's children, as soon as any of them reported that they have speech, all the subsequent ones were marked as having speech too, even if they didn't. This has now been fixed. The impact was that too many nodes were created.

There's one further optimisation that we could make, which is, only create a pan node if pan is being modified, and only create a gain node if gain is being modified. Need to make sure we don't make it impossible to implement bbc/Adhere#78 in doing this though. I'm not really sure if it's worthwhile.

@robertbryer do you think the issue you originally raised has now been fixed, or are you still seeing significantly too many nodes?

from adhere-lib.

robertbryer avatar robertbryer commented on June 12, 2024

There's one further optimisation that we could make, which is, only create a pan node if pan is being modified, and only create a gain node if gain is being modified. Need to make sure we don't make it impossible to implement bbc/Adhere#78 in doing this though. I'm not really sure if it's worthwhile.

I think that was the original point I was getting at with issue—it's why the nodes refer to this.input/this.output because the original intention was to allow them to just passthrough as an option (i.e., when you ask for a non-audio-modifying node's output, it could just return its parent's output instead). If you wrapped every <span> in their own <p> and then a <div> there would be a lot of unneccessary gain/pans. I haven't seen any performance problems or otherwise, so maybe it's not a problem to get exercised about right now.

from adhere-lib.

Related Issues (12)

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.