Multithreading and controlP5

edited May 2015 in Library Questions

Hi All--

I am working on an application and I have built a GUI for it using controlP5. The problem is, there are some lengthy for loops in my draw loop and the GUI only updates after every cycle through the draw loop. The result is that the GUI isn't responsive enough. Is it possible to set up some multithreading with one thread for my controlP5 gui and another thread for all my computations? I thought others would have tried this but nothing comes up in a search. Am I missing something regarding the possibility of doing this?


  • maybe you could avoid the for-loops and instead rely on the looping of draw() itself

    so say i++;

    if i>= max i=max;

Sign In or Register to comment.