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

Deferred viewports #306

Merged
merged 9 commits into from
Jun 25, 2024
Merged

Deferred viewports #306

merged 9 commits into from
Jun 25, 2024

Conversation

lukexor
Copy link
Owner

@lukexor lukexor commented Jun 24, 2024

This removes all uses of immediate viewports and support for them, which removes the one use of unsafe. Since tetanes is not intended to be a general-purpose library, immediate viewports are not required and, as they are less performant, not desired.

Smaller windows will be in-frame, and larger, more complex windows, will be deferred with their own repaints.

Closes #296

@lukexor lukexor force-pushed the deferred_viewports branch from 3bd532e to 4b14a1a Compare June 24, 2024 15:34
@lukexor
Copy link
Owner Author

lukexor commented Jun 25, 2024

Well unfortunately, it turns out that the EventLoopProxy from winit is !Sync in 0.29.15. 0.30.0 resolved this, but that is blocked pending #289.

For now, desktop can be deferred until winit is upgraded.

@lukexor lukexor merged commit 6e7dbc8 into main Jun 25, 2024
18 checks passed
@lukexor lukexor deleted the deferred_viewports branch June 25, 2024 01:47
lukexor added a commit that referenced this pull request Jun 25, 2024
@lukexor lukexor mentioned this pull request Jun 25, 2024
@lukexor lukexor mentioned this pull request Oct 10, 2024
This was referenced Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change Viewports to use deferred rendering
1 participant