Skip to content
Snippets Groups Projects
README-ps2.md 1.66 KiB

PS2

SDL2 port for the Sony Playstation 2 contributed by:

  • Francisco Javier Trujillo Mata

Credit to

  • The guys that ported SDL to PSP & Vita because I'm taking them as reference.
  • David G. F. for helping me with several issues and tests.

Building

To build SDL2 library for the PS2, make sure you have the latest PS2Dev status and run:

cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=$PS2DEV/ps2sdk/ps2dev.cmake
cmake --build build
cmake --install build

Hints

The PS2 port has a special Hint for having a dynamic VSYNC. The Hint is SDL_HINT_PS2_DYNAMIC_VSYNC. If you enabled the dynamic vsync having as well SDL_RENDERER_PRESENTVSYNC enabled, then if the app is not able to run at 60 FPS, automatically the vsync will be disabled having a better performance, instead of droping FPS to 30.