Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix vulkan issues on iOS #13770

Open
Halo-Michael opened this issue Dec 15, 2020 · 7 comments
Open

Fix vulkan issues on iOS #13770

Halo-Michael opened this issue Dec 15, 2020 · 7 comments

Comments

@Halo-Michael
Copy link
Contributor

Halo-Michael commented Dec 15, 2020

Currently, support for vulkan on iOS is very limited. Currently, the method of loading dynamic library is used to enable vulkan support. But in fact, after selecting the vulkan option, PPSSPP cannot call the vulkan module correctly (still using OpenGL), and there is only few records in the log that shows vulkan does work.
Bug
#10654 (comment)

And if run directly from xcode to the device, libMoltenVK.dylib may not be signed by the Apple Developer Certificate.
#13766 (comment)
CMakeFile needs to be improved so that Xcode can correctly treat libMoltenVK.dylib as part of the library and sign it correctly, or use libMoltenVK.a to statically compile into PPSSPP.

@hrydgard
Copy link
Owner

Aren't we still missing code to actually use Vulkan on iOS, in like ViewController.mm? The IOSGraphicsContext only supports OpenGL.

I think statically compiling it in would probably be the best solution, too.

@hrydgard hrydgard added this to the v1.12.0 milestone Dec 15, 2020
@hrydgard hrydgard modified the milestones: v1.12.0, Future Jul 11, 2021
@Halo-Michael
Copy link
Contributor Author

Halo-Michael commented Sep 1, 2021

MoltenVK do have a static framework library file for statically compile. (/Users/(User name)/VulkanSDK/1.2.182.0/MoltenVK/MoltenVK.xcframework/ios-arm64/libMoltenVK.a)
Also, static compilation makes it easier to use non-jailbroken devices for signature installation/testing.

@Halo-Michael
Copy link
Contributor Author

Halo-Michael commented Sep 1, 2021

Also, static compile for macOS is also a good choice.

@unknownbrackets
Copy link
Collaborator

I would not be against static compilation for either one, personally. How much bigger would the iOS app get if it were statically compiled?

-[Unknown]

@Halo-Michael
Copy link
Contributor Author

I would not be against static compilation for either one, personally. How much bigger would the iOS app get if it were statically compiled?

-[Unknown]

I think the total size will not be smaller than using dynamic link library.

@LoveGaming2much
Copy link

Does it work now ?

@hrydgard
Copy link
Owner

hrydgard commented Apr 30, 2023

While probably not the same cause, making a note here that it was reported by 𝓓𝓞𝓝𝓣𝓑𝓛𝓐𝓜𝓔𝓜𝓔𝓜8 on Discord that Vulkan started crashing a lot on iOS somewhere in this range:

bbb55e9...b96d4aa

@hrydgard hrydgard modified the milestones: Future, Future-Prio Apr 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants