Multiple draw(window) calls on the fly cause crash

Issue #82 new
Natan Organick created an issue

When multiple shapes are created and drawn on the fly (for example, when the mouse is clicked), the sketch window freezes and Calico must be quit.

See examples/python/Graphics/Games/pong.py. When the game is run and the user only clicks a few times, or many times but spaced out, everything works. When the user spams the mouse and clicks repeatedly and continuously, the window freezes.

When lines 34 and 35 are commented out,

    c.draw(win)
    c.body.ApplyForce( Vector(50, 50))

the program does not freeze when the mouse is spammed.

Solution idea: Lock everything in the window before draw, draw shape, then unlock.

Comments (0)

  1. Log in to comment