Ubuntu + Nvidia sync trouble

I have tried everything on my RTX-2070 and T1000 systems, including all the recommended optimisations (low-latency kernel, clean install, gamemode priority etc.), you can see some of this in the following issue: https://github.com/kleinerm/Psychtoolbox-3/issues/168

One thing that was a reliable observation — the first PTB run in a fresh MATLAB invocation normally returns sync stddev just below the threshold, but from the next run on the sync testing always fails. Does this happen for you? I never managed to solve this.

My solution is to only use AMD cards with the open-source drivers for experiment data (where I never get sync errors), and then just test if I’m running on NVidia and increase the sync tolerance as my NVidia machines are only development systems:

gpuinfo = opengl('data');
if IsLinux && ~isempty(regexpi(gpuinfo.Vendor,'NVIDIA','ONCE'))
   Screen('Preference','SyncTestSettings', 0.001); %up to 1ms std variability
end
1 Like