Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3566

Graphics programming • Garbled output when disabling vsync on CLI on Pi 5

$
0
0
Image

The only thing that displays correctly is the mouse cursor. The screen should be mostly black so it's completely off. Multiple games exhibit this behaviour. It's linked to:

Code:

SDL_GL_SetSwapInterval(v ? 1 : 0); // vsync, 1 = on
When 'v' is true, I get this white screen with little dots, no matter what the picture is supposed to be.

This works fine on Pi 4B and 3B+.

Statistics: Posted by skinmarquee — Tue Jan 16, 2024 11:51 pm — Replies 2 — Views 301



Viewing all articles
Browse latest Browse all 3566

Trending Articles