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

Put canvas in different thread from UI #8

Open
lazzarello opened this issue Mar 25, 2017 · 1 comment
Open

Put canvas in different thread from UI #8

lazzarello opened this issue Mar 25, 2017 · 1 comment

Comments

@lazzarello
Copy link

lazzarello commented Mar 25, 2017

This is more of a generalized question about controlP5. I've forked the repo and I'm working on a project which depends on stipplegen, so I'll be giving this some attention but most of that will be learning the processing environment and community.

It seems from the surface that the UI is refreshed at the same frame rate as the canvas. On my target hardware (which is not cutting edge) one iteration with 4000 dots takes about 45 seconds. If I attempt to change the GUI controls for dot size or white point during that 45 seconds, there is no response.

If I hold down the mouse pointer for 45 seconds on the slider, it will "grab" eventually. It would be a nice feature to decouple the controls from the dot rendering.

@oskay
Copy link
Contributor

oskay commented Mar 25, 2017

I agree that it would be nice. My usual method is to pause (if possible) to adjust settings, or to adjust settings before changing the stipple count to be high.

One method would be to only process a certain portion of the voronoi calculation each GUI cycle.

In the long term, I'd prefer to migrate the core graphics library away from toxiclibs, for speed and stability. (No disrespect whatsoever intended to toxiclibs, but there are occasionally memory leaks that come back to haunt us.)

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

2 participants