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

Some sketches that use additive feedback won't work when started at the same time as Hydra #96

Open
geikha opened this issue Jul 30, 2020 · 0 comments

Comments

@geikha
Copy link
Member

geikha commented Jul 30, 2020

Description of the issue

In particular, with sketches that add some output to itself, when made into a link and opened, it would seem that the feedback starts before Hydra can load, so a blank white screen shows. When this happens, it can be fixed via using the hush() function and re-evaluating the code for the sketch. I've tried writing a hush() statement before the rest of the code and it still happens.

Example

The last time I encountered this problem was in this sketch I made

Quick solution I found

I found as a momentary solution putting a hush() statement before the code, and then surrounding the image generating code in a setTimeout() function. Making Hydra wait a bit before executing the image generating code. Here's an example of that

So...

I assume this is Hydra trying to process the feedback before it could process the images themselves. Maybe there could be a way to make Hydra wait a bit more, from the inside.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants