klabhub / neurostim

Design and run visual neuroscience experiments using Matlab and the Psychophysics Toolbox.
MIT License
5 stars 3 forks source link

Test script and possible fix (in cic.run()) for Issue #70. #71

Closed cnuahs closed 7 years ago

cnuahs commented 7 years ago

See tools/testFlip.m for a minimal reproduction of the frame loop slowdown described in Issue #70. On my Ubuntu machine I see a slowdown of between 3-5 times when calling Screen('Flip',...) with the optional 'when' parameter.

Note that Issue #70 doesn't affect performance on identical hardware running Windows 7.

I believe the change (in cic.run()) implemented here is functionally the same as previously, but without the 'when' parameter. With this change I get excellent performance on Ubuntu.

See what you think. If this seems acceptable, I suggest we merge it into master.