p5py / p5

p5 is a Python package based on the core ideas of Processing.
https://p5.readthedocs.io
GNU General Public License v3.0
730 stars 120 forks source link

Strange flickering and graphical errors occurring on Arch Linux #25

Closed cjayross closed 6 years ago

cjayross commented 6 years ago

Test script: p5-examples/basics/form/shape_primitives.py

Expected behavior: primitives_expected-1

Actual behavior: In more complex sketches involving moving graphics, objects in which are moving begin to glitch at random intervals rather than the sketch turning to black periodically. primitives_actual

Note: I'm unsure if this is an upstream issue or not, but I've only begun seeing it with p5 so far.

i3-gaps version (fork of i3-wm): 4.14.1-2 Xorg version: 1.19.6-2 pyglet version: 1.3.0 mesa version: 17.3.1-2

Errors produced (if any): None

p5 version: e78c4a8

Python version: Python 3.6 Operating System: Arch Linux (4.14.10-1-ARCH x86_64)

cjayross commented 6 years ago

Fortunately, the issue had a simple solution. It was only a matter of turning on vsync during the creation of the pyglet window in p5/sketch/base.py.