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

Migrate SDL2 to SDL3 #8665

Open
misl6 opened this issue Mar 31, 2024 · 3 comments
Open

Migrate SDL2 to SDL3 #8665

misl6 opened this issue Mar 31, 2024 · 3 comments
Assignees
Milestone

Comments

@misl6
Copy link
Member

misl6 commented Mar 31, 2024

SDL3 reached the first pre-release last week, and since it will certainly reach the production status before Kivy 3.0.0 reaches it, makes sense to start the migration process.

A few things need to be re-organized, but SDL3 is a step forward.

@misl6 misl6 added this to the 3.0.0 milestone Mar 31, 2024
@misl6 misl6 self-assigned this Mar 31, 2024
@brentpicasso
Copy link
Contributor

Hi! @DexerBR just told me that SDL3 will have support for cameras, with the ability to capture video to a SDL texture!

https://youtu.be/MKM6-03iOPs?si=OZ0VLxVCoEHcpMQU

What are your thoughts on including that in Kivy?

@misl6
Copy link
Member Author

misl6 commented Apr 6, 2024

What are your thoughts on including that in Kivy?

Is great that the SDL team is adding such a feature in SDL3, and that can certainly be one of our core providers for cameras (and feel free to propose changes).

But, from my perspective, in the past, we relied too much on features from SDL (like textinput), and that made it harder (or impossible, without touching SDL code) for us to fix long-standing bugs.

My goal, for the future, is to move the focus on platform-specific (and native) core providers, as that gives us more chances to quickly assess bugs and access new features. (this also means directly rendering to OpenGL/Metal texture to improve the performance, as my WIP POC for the AVFoundation core provider )

So, to summarize: If anyone wants to introduce the sdl camera provider, I will be happy to merge it, but I think we should look for alternatives (and improve the current ones)

PS: If you think something is missing on the current implementations (or we can do something better), feel free to open an issue, so we can triage it and schedule for 3.0.0

@JLucasXavier
Copy link

Hello! I hope you are well. I've been following this repository for a while now and I find it quite impressive. I'm genuinely interested in contributing more to this, as it represents a great opportunity for me to contribute to an open source project for the first time.

I would like to know if there is any way I can contribute to this refactoring of this migration from SDL2 to SDL3 that is being done?

Thank you for your time and I hope to hear from you soon!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In progress
Development

No branches or pull requests

3 participants