Email or username:

Password:

Forgot your password?
Top-level
Erik Živković

@raph Cool! Currently my biggest gripe about winit is that they require you to run the render loop on the main thread on macos/ios (this might be a limitation of underlying objc crates though). I have some uses for running the render loop off the main thread!

2 comments
Raph Levien

@erik Depending on the details, I believe this is being addressed. I think this is something the Traverse people want, and they're big contributors to winit. Also, Mads Marquart (another winit contributor) is working on objc2 and there's a strong sense of migrating toward that.

Keep in mind though, there are a lot of constraints coming from the platforms themselves in terms of what you can, can not, and must do on the UI thread, especially if you want it to be actually safe.

Erik Živković

@raph

Re people working on it: fantastic!

Re safety concerns: fully agree, it must be done within the constraints of safety - afaik the metal and opengl APIs don't have any problems running on other threads, as long as other safety parameters are upheld.

I'm working on consumer apps using mixed UIKit/SwiftUI/OpenGL with video playback and am looking to migrate the OpenGL parts to use #Bevy. Initial tests are promising but I was surprised... (1/2)

Go Up