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

expose render_to #7

Merged
merged 1 commit into from
Sep 17, 2023
Merged

expose render_to #7

merged 1 commit into from
Sep 17, 2023

Conversation

davidar
Copy link
Contributor

@davidar davidar commented Sep 17, 2023

this exposes render_to, and moves the call to present() to render_async instead. this way, render_to can return the SubmissionIndex and non-web targets can use device.poll() to wait for the frame at later time, presenting it then.

my render loop calls render_to on a timer to limit fps and stores the SubmissionIndex until a Wayland frame callback comes in and i need to actually .present().

this exposes `render_to`, and moves the call to `present()` to
`render_async` instead. this way, `render_to` can return the
`SubmissionIndex` and non-web targets can use `device.poll()` to wait
for the frame at later time, presenting it then.

my render loop calls `render_to` on a timer to limit fps and stores the
`SubmissionIndex` until a Wayland frame callback comes in and i need to
actually `.present()`.
@davidar davidar merged commit 51b3fd9 into compute-toys:master Sep 17, 2023
1 of 2 checks passed
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.

2 participants