SDL icon indicating copy to clipboard operation
SDL copied to clipboard

PSP renderer should create streaming textures in VRAM

Open slouken opened this issue 1 year ago • 7 comments

As discussed in https://github.com/libsdl-org/SDL/issues/9260, streaming textures should be placed in VRAM so they can have zero-copy performance.

I believe @rofl0r is wanting to do this?

slouken avatar Jul 22 '24 15:07 slouken

i also wanted to port the windowsurface changes to SDL3, but while working on it my PSP fell to the floor and now the keypad no longer works correctly. i can still use my mp3 player app but i sorta stopped development on the gb emulator port as i won't be able to use it myself. we gotta postpone this until i find a working cheap psp on the flea market, or maybe someone else wants to look into it. maybe @fjtrujy ?

rofl0r avatar Jul 22 '24 17:07 rofl0r

i also wanted to port the windowsurface changes to SDL3, but while working on it my PSP fell to the floor and now the keypad no longer works correctly. i can still use my mp3 player app but i sorta stopped development on the gb emulator port as i won't be able to use it myself. we gotta postpone this until i find a working cheap psp on the flea market, or maybe someone else wants to look into it. maybe @fjtrujy ?

You still could use PPSSPP, is true that performance is not real, but at least you will know if it works fine

fjtrujy avatar Jul 22 '24 20:07 fjtrujy

@rofl0r any progress on porting this to SDL3?

Cheers

fjtrujy avatar Aug 22 '24 16:08 fjtrujy

psp is still in bad shape. additionally now the battery gave up and whenever i touch the power cable the thing turns off. ppsspp isnt an option because i encountered dozens of cases where stuff works on ppsspp and not on psp and vice versa. the performance is also completetly different.

rofl0r avatar Aug 22 '24 17:08 rofl0r

psp is still in bad shape. additionally now the battery gave up and whenever i touch the power cable the thing turns off. ppsspp isnt an option because i encountered dozens of cases where stuff works on ppsspp and not on psp and vice versa. the performance is also completetly different.

Isn't almost the same implementation you did for SDL2? or am I missing something?

fjtrujy avatar Aug 22 '24 17:08 fjtrujy

unfortunately not. in the sdl2 code i basically copied an existing function dealing with windowsurface and just modified it slightly. the same function in sdl3 source is pretty different.

rofl0r avatar Aug 22 '24 17:08 rofl0r

unfortunately not. in the sdl2 code i basically copied an existing function dealing with windowsurface and just modified it slightly. the same function in sdl3 source is pretty different.

Couldn’t you try to implement it even using PPSSPP? I will run test with real PSP afterwards

fjtrujy avatar Aug 22 '24 18:08 fjtrujy