-
-
Notifications
You must be signed in to change notification settings - Fork 157
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
feat: multi-window support #109
Conversation
@@ -78,20 +92,67 @@ impl Window { | |||
) | |||
} | |||
|
|||
/// Handle Winit window event. | |||
/// Create a Verso window with the rendering context. | |||
pub fn new_with_compositor( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this code looks duplicated with pub fn new(evl: &EventLoopWindowTarget<()>) -> (Self, RenderingContext)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The current limitation is that RenderingContext
still needs a surface which means it needs an existing window to create. Do you have any suggestions for the abstract?
Seems to work on windows though even with a basic page like google.com, it hits dom binding errors which cause it to crash. Otherwise, you can spawn as many windows as you want (I ended up spawning about 100 of them though without any web content loaded; took about 6 gigs of memory though). |
This PRs adds initial multi-window support.
There are some known issues we might open in follow up issues: