shiffman / LearningProcessing

A repo for examples from the book Learning Processing
http://learningprocessing.com
606 stars 276 forks source link

Fix drawings of other clients not showing in example 19-7 #226

Open multimentha opened 6 years ago

multimentha commented 6 years ago

A client would only show it's own drawings, but not what other connected clients were drawing. This likely didn't work in Processing 3 because the drawing calls were made outside of the main animation thread. They are now made inside of the main draw() loop which let's everyone see what everyone else is drawing (with a slight network delay).