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

Draw: continues to draw after window flipped #456

Open
RebeccaHirst opened this issue Aug 12, 2021 · 0 comments
Open

Draw: continues to draw after window flipped #456

RebeccaHirst opened this issue Aug 12, 2021 · 0 comments

Comments

@RebeccaHirst
Copy link
Contributor

Locally in PsychoPy calling .draw() will draw when the findo is flipped but stop drawing on the next frame.

i.e.

polygon.draw()
win.flip()

would show the polygon, but:

polygon.draw()
win.flip()
win.flip()

would not show the polygon.

In PsychoJS this behaves differently, the polygon will continue to draw even after additional window flips. To avoid this, we need us use setAutoDraw(True) and setAutoDraw(False) which is ok but might be nexpected behaviour for many.

Minimal bug demo here: https://gitlab.pavlovia.org/Consultancy/draw_bug

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

1 participant