Sylvain Becker
Sylvain Becker
Doing a quick test on my quite old linux / intel laptop, with a 3888 x 2592 surface. SSE still seems a little faster or equal compared to only SDL_memcpy...
I fixed my script: [ios_build_libs.sh.txt](https://github.com/libsdl-org/SDL/files/9483381/ios_build_libs.sh.txt) It seems I have to "force" the PLATFORM variable so that the HEADER_SEARCH_PATHS is correct. eg: adding 'PLATFORM=iOS' to the xcodebuild command line.
yes, this is true. in fact the variable is by default RGB_565. https://github.com/libsdl-org/SDL/blob/main/src/video/android/SDL_androidvideo.c#L67 When the android window is created (java call surfaceChanged), it asynchronously updates the value. maybe you can...
can you add also : SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 0); after SDL_Init() and before the SDL_CreateWindow(). So the place is corret. The line interesting for you is: `SDL/APP : pixel format wanted SDL_PIXELFORMAT_RGBX8888...
just to be sure: you added the 4 lines: SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 0); SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 5); SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 6); SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 5); there is a "FAVOR_TRUECOLOR" define: https://github.com/libsdl-org/SDL/blob/main/src/video/SDL_egl.c#L889 can you try to un-activate it ?...
So it looks like the FAVOR_TRUECOLOR define prevents you to get the the 565 configuration, because it promotes your request as a RGB888 request. But there is a second thing:...
ok great ! can you tell which device you're using for the record ?
this is hard-coded in PREFIX. if you don't want to change anything. create: $HOME/release/Release_SDL_IOS/ put inside SDL sources, eg directories SDL SDL_image SDL_ttf SDL_mixer run the script from directory "$HOME/release/Release_SDL_IOS/"...
SDL, just a git clone of SDL tree/project. SDL_image for SDL_image tree. etc. no need to use "iosBuild.sh". you don't need to run it with sudo. but you need to...
once cloning, you should have the directory "Xcode/SDL/SDL.xcodeproj" in SDL/ the clone should be named "SDL" in " $HOME/release/Release_SDL_IOS/"