i have been busy coding a fairly involved setup using psychopy 3.0.0b2 with python 2.7 in pycharm. So far it worked out fairly well overall. I encoutered a bug with text stimuli and decided to upgrade to psychopy 3.0.7 with python 3.7. the transition was mostly smooth but now i encounter some strange behavior when using multiple windows with different resolutions.
When both windows use the same resolution stimuli are displayed as inteded. Changing the resolution on one window seems to influence the second in that stimuli are not displayed at the correct location and scale. I was able to narrow the cause down to the .flip() command. If only one window is flipped, everything is fine. I suspect that it has something to do with buffering and that flipping one window overwrites some parameter in the other.
I can reproduce the described behaviour with this code:
from psychopy import visual import time mainres = (1920, 1080) secRes = (200,200) win1 = visual.Window(size=mainres, screen=0, units="height", winType='pyglet' ) win2 = visual.Window(size=secRes, screen=0, units="height", winType='pyglet' ) box1 = visual.Rect(units="height", win=win1, width=1, height=1) box2 = visual.Rect(units="height", win=win2, width=0.5, height=0.5) while True: box1.draw() box2.draw() win1.flip() win2.flip() time.sleep(1)
I hope this illustrates the problem. It was not happening in 3.0.0b2 so something must have changed in the meantime.
I would be very happy if someone could help me with this.