Questions tagged [sdl]
SDL stands for Simple DirectMedia Layer. It is a cross-platform media library written in C, that allows users to simply access grapics, sound, and other input devices.
27 questions
1
vote
0
answers
785
views
Raspberry Pi v4, forced VSYNC?
I wrote an emulator and I have a piece of code that syncs audio/video using elapsed time and remaining bytes to play on audio buffer. This works very well.
If I remove that piece of code emulator runs ...
0
votes
1
answer
10k
views
Could not get EGL Display - Starting RetroPie
I have manually installed RetroPie, using the terminal and some tutorials..
Finally ready to start everything up... and then get this error:
Error Creating SDL window!
Could not get EGL display
...
0
votes
0
answers
116
views
Why can't a Raspi 4 load as big a SDL2 texture as a 3B+?
I've been developing a game in C using SDL2. It works fine on a Raspberry Pi 3B+. On a Raspberry Pi 4 with 4 GB of RAM, it fails to load one of the graphics because "textures are limited to 4096x4096" ...
0
votes
0
answers
597
views
"Couldn't find matching render driver" error [LIBVLC][LIBSDL2][RPi3 B]
I am trying the simple libvlc demo with libsdl2 from LibVLC Sample Code SDL but I am having issues when running the compiled binary. I get a "Couldn't find matching render driver" error from ...
2
votes
1
answer
610
views
Running SDL 1.2 based code on buster without X
Up to and including Raspbian Stretch, I could use a hacked SDL library called SDL12-kms-dispmanx by a developer called vanfanel to run SDL 1.2 code from the console without X. (See here: https://...
1
vote
0
answers
131
views
Why I can't get Ruby2D running on Raspberry Pi 3 model B?
I have made quite a lot of games in Ruby2D. I can play them on my PC, laptop. Ruby2D is a lot of fun and works very fast!
But for some strange reason I can't get Ruby2D window working on a Raspberry ...
2
votes
2
answers
530
views
How can I invert the mouse Y axis in Minecraft Pi - followup
Apparently as someone just joining the community, I cannot ask for clarification on answers. There is no way to message a user, so I'm posting a new question relating to the following post.
How can I ...
1
vote
1
answer
250
views
Running SDL app via RealVNC with Direct Capture enabled does not accept Keyboard input
I am trying to run and SDL hardware-accelerated app, PICO,-8 over VNC, and thanks to this community I am making progress!
One solution is to use RealVNC with the experimental DirectCapture feature ...
1
vote
1
answer
1k
views
Which remote access method allows me to access an SDL-based application
I am trying to run an SDL-based application, PICO-8, on a headless Raspberry Pi 3. When I run it locally, everything works fine as it should. When I try to run it via either RealVNC or SSH X11 ...
0
votes
1
answer
1k
views
Slow pixel drawing with SDL2 & experimental OpenGL driver
The code bellow just polling mouse events and draw lines between the previous and last mouse coordinates in case of left mouse button pressed down, nothing special and its using only fast integer ...
0
votes
2
answers
517
views
"avplay audio.wav" generates error: "Could not initialize SDL - Unable to open a console terminal"
When I try to play an audio file using avplay on a raspberry pi3 running raspbian jessie, I get the following error.
pi@raspberrypi:~/sounds $ /usr/bin/avplay clip1.wav
avplay version 11.9-6:11.9-1~...
1
vote
0
answers
204
views
Emulator launches behind SDL front-end
I'm trying to add RetroFE (using SDL2) to RetroPie as an alternative to EmulationStation.
Unfortunately the emulators launch behind the front-end. I've tried hiding the window, minimizing it, etc., ...
0
votes
1
answer
310
views
Retropie SDL Key not recognized warning
I have a RPi 3B with Retropie 4.1 all updated to the latest binaries. I had installed minecraft from the RetroPie-Setup and since then I am getting SDL warnings logged into the console that read "The ...
0
votes
1
answer
2k
views
Rendering with SDL2
I migrated a small SDL2 project to my raspberry pi and the performance was just awful.
On frames with less textures to render, it runs beyond 60fps. Otherwise, the CPU skyrockets to >90% and the ...
0
votes
1
answer
99
views
Mobile Development On A Pi
I've been using a raspberry pi for two years for coding ( mostly in c++, using SDL2 ). Now feeling I have a sufficient grasp of this library, I would like to try out it's mobile utilities to get stuff ...