We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi guys,
So I have been having performance issues with processing running on an Ubuntu GPU server. I'm losing frames. we're talking hundreds of frames on a 2mn sketch with the sketch set to run at 60fps.
The weird thing here is the CPU usage never goes past 20% nor the GPU for that matter. Thinking the entire sketch is only using one core instead of the 8 available.
Thanks!
Answers
A potential cause of slow down is writing the frames to disk. Perhaps a virtual disk can help there, or using a SSD or similar. The fact you use not so much CPU can be a hint toward this I/O issue.
new
Thread class,your whole ".pde" code runs within the so-called "Animation Thread" that Processing's framework starts!
Of course there are other threads like GC & AWT event dispatches running along ours.
Even so, there are no guarantees whether a Thread is chosen to be run in a separate core!
http://forum.processing.org/two/discussion/5886/multithreading-madness
Thanks guys, using thread() is not as straightforward as I hoped as it didn't improve much doing so. Will keep exploring solutions.