SDL/src/render
rofl0r 7b6695f4d4 PSP: zero-copy WindowSurface API for direct VRAM access
if all one needs is a raw framebuffer to the PSP's vram,
instead of dealing with renderers and textures, that need to be
copied hence and forth, this method allows one to create a window,
set the pixel format using SDL_SetWindowDisplayMode() - preferably
BGR565 for optimal speed (the other possible natively supported
option is ABGR8888) - and then request SDL_GetWindowSurface(),
which provides one with a surface with direct framebuffer access.
note that the pixels pointer inside the surface will be switched
after each call because of double-buffering.

it's advisable to overwrite all pixels of the PSP visible area
(480x272) to not encounter old data.

after writing the pixels, a call to SDL_UpdateWindowSurface()
sends the changes to the graphics chip.

the result is a raw framerate of 250 fps with BGR565 mode, under
optimal circumstances - i.e. nothing else is done than drawing,
and the drawing loop is as simple as possible.
that leaves about 12 ms per frame for other tasks and still allow
a fluent 60 fps.
2024-03-24 11:33:32 -07:00
..
direct3d If the viewport changes the cliprect should be updated 2024-02-28 08:48:40 -08:00
direct3d11 If the viewport changes the cliprect should be updated 2024-02-28 08:48:40 -08:00
direct3d12 If the viewport changes the cliprect should be updated 2024-02-28 08:48:40 -08:00
metal Check the SDL_VIDEO_RENDER_??? macros with #if instead of #ifdef 2024-02-15 02:55:02 +03:00
opengl If the viewport changes the cliprect should be updated 2024-02-28 08:48:40 -08:00
opengles Check the SDL_VIDEO_RENDER_??? macros with #if instead of #ifdef 2024-02-15 02:55:02 +03:00
opengles2 If the viewport changes the cliprect should be updated 2024-02-28 08:48:40 -08:00
ps2 If the viewport changes the cliprect should be updated 2024-02-28 08:48:40 -08:00
psp PSP: zero-copy WindowSurface API for direct VRAM access 2024-03-24 11:33:32 -07:00
software Check the SDL_VIDEO_RENDER_??? macros with #if instead of #ifdef 2024-02-15 02:55:02 +03:00
vitagxm If the viewport changes the cliprect should be updated 2024-02-28 08:48:40 -08:00
SDL_d3dmath.c Check the SDL_VIDEO_RENDER_??? macros with #if instead of #ifdef 2024-02-15 02:55:02 +03:00
SDL_d3dmath.h Check the SDL_VIDEO_RENDER_??? macros with #if instead of #ifdef 2024-02-15 02:55:02 +03:00
SDL_render.c Convert mouse wheel coordinates to renderer view 2024-02-20 15:44:26 -08:00
SDL_sysrender.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_yuv_sw.c Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_yuv_sw_c.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00