Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Synth takes too much time to load #17

Closed
jofemodo opened this issue Oct 24, 2018 · 6 comments
Closed

Synth takes too much time to load #17

jofemodo opened this issue Oct 24, 2018 · 6 comments

Comments

@jofemodo
Copy link
Contributor

The synth takes too much time to load. It seems that some pre-calculation is done every time the binary is executed. Do you think it would be possible to save this precalculation so we could avoid the initial precalculation? Can you give me some basic tips for doing that?

Thanks!

@jpcima
Copy link
Collaborator

jpcima commented Oct 24, 2018

I think you'll want to cache results of the oscillator generation known as yc20_precalc_oscillators.
This calculation is made at runtime because its result depends on the sample rate.

I guess it's not too difficult to conserve this information in the user's .cache directory after the initial computation.

@sampov2
Copy link
Owner

sampov2 commented Oct 24, 2018 via email

@jofemodo
Copy link
Contributor Author

I will do it ASAP ;-)
I'm integrating foo-yc20 in Zynthian and it should load in not more than 2-3 seconds.

@jofemodo
Copy link
Contributor Author

OK! It's implemented and now it loads like a gunshot!! ;-)

jofemodo added a commit to zynthian/foo-yc20 that referenced this issue Oct 25, 2018
@sampov2
Copy link
Owner

sampov2 commented Oct 25, 2018 via email

@jofemodo
Copy link
Contributor Author

jofemodo commented Oct 25, 2018

Yes, but CPU load is still quite high and get some XRUNs. Some optimization would be diserable. Some ideas about reducing CPU load? ;-)

@sampov2 sampov2 closed this as completed in d411d82 Sep 2, 2020
sampov2 added a commit that referenced this issue Sep 2, 2020
Fix #17 & #18:  Reduce loading time and add a basic console interface
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants