Closed smcv closed 1 year ago
With https://github.com/libsdl-org/sdl12-compat/commit/67f8b3a85b782eefb4db90f34d5b0742ef2cb5fc (1.2.58 + 29 commits) the copyright message, explosion and CRASHED appear as expected, but on Wayland the game sometimes (50%) becomes unresponsive anyway. With X11 it seems to be reliable?
We'll track that separately, since that's going to get revisited after the 1.2.60 release.
Prerequisites:
pipewire-pulse
emulating PulseAudioapt install bumprace
(Debian package version1.5.7-1.1
)libsdl1.2-compat
either 1.2.58-1 (packaged in Debian experimental) or commit 63e4393 (locally built)libsdl2-2.0-0
version2.24.1+dfsg-1
libsdl-image1.2
version1.2.12-13+b1
libsdl-mixer1.2
version1.2.12-17+b2
libsdl1.2debian
(real SDL 1.2) version1.2.15+dfsg2-8
To reproduce:
bumprace
LD_LIBRARY_PATH=.../sdl12-compat/_build bumprace
SDL_VIDEODRIVER=wayland LD_LIBRARY_PATH=.../sdl12-compat/_build bumprace
Watch for a copyright message before the main menu appears.
Use arrow keys and Enter to select "1 player game", "Flying saucer (Best steering)".
Use Left/Right arrow keys to rotate (the red tick mark on the flying saucer is the back end) and Up arrow key to fire the engine. Steer yourself into an enemy (grey shuriken-looking things) or obstacle (electricity). If necessary exit the level (press Esc repeatedly) and start again to get a level where there is electricity closer to your starting position.
Expected result: The copyright message is visible. After colliding, an explosion and "CRASHED" appear, and the level restarts.
Actual result: with real SDL 1.2, as expected. With sdl12-compat, the copyright message is not shown (the relevant part of the screen remains blank), and during gameplay, the explosion and "CRASHED" do not appear and the game freezes for a while (music continues to play but the game is unresponsive). Sometimes it resumes gameplay after waiting a while, but usually it does not.