Comments (2)
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.
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)
- Audio files should be preloaded before use for better sync before playback.
- Overlapping time audio cues won't work HOT 1
- Add BBC open source branding HOT 1
- Support `animation @fill`
- Tidy up before parsing a new TTML document
- Create tests
- Create dev and build dists
- Improve documentation
- Dependency Dashboard
- Test for blob protocol fails
- Support DAPT
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adhere-lib.