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

Use minImageCount when creating swapchain #91

Closed
zakorgy opened this issue Mar 5, 2018 · 0 comments
Closed

Use minImageCount when creating swapchain #91

zakorgy opened this issue Mar 5, 2018 · 0 comments
Assignees

Comments

@zakorgy
Copy link

zakorgy commented Mar 5, 2018

Currently we have two images for frames (this is a default in gfx). But #80 (comment) shows, that there are cases, when we have to use more than two.
The problem is, that acquiring the next frame with more than two frame images returns a Frame with a random id, not with the current_id + 1 as we expecting it.
NOTE: We use (self.current_frame_id + 1) % self.framebuffers.len() to calculate the next current_frame_id at the moment, but this isn't good for this case.
We have to acquire the next frame earlier, to get the correct frame id.

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

No branches or pull requests

2 participants