Need help fixing vsync tearing with dual screen OpenGL (HDMI + DisplayPort)

Hi Wayne

I have been working on this with Trey.

We located the /usr/src/jetson_multimedia_api samples using the SDKManager installer.

I have been testing today with this sample:

/usr/src/jetson_multimedia_api/samples/00_video_decode

I made a simple h264 video file which I have attached to the post below:

WhiteLine_HD.zip (111.5 KB)

I am playing the video file using this command:

/usr/src/jetson_multimedia_api/samples/00_video_decode$ ./video_decode H264 ~/Videos/WhiteLine_HD.h264

When I start the nano with only the HDMI connected the video file plays perfectly with no tearing.

When I start the device with both the HDMI & the Display Port connected to monitors the video file is tearing badly and conssistently.

Both Monitors are running at 1920x1080 60.0Hz verified with xrandr

I also tried:

export __GL_SYNC_TO_VBLANK=1
export __GL_SYNC_TO_VBLANK=0

This often changes the position of the tearing, and sometimes it is less noticable, but it does not consistently stop the tearing occuring.

Please can you advise how to stop the tearing when the second monitor is connected? Ultimately we need to be able to draw to both outputs from our application without tearing. But right now we cannot even draw to one output without tearing whenever the second monitor is connected.

Thanks!