Skip to content

Nuke MTLTexture so we can get drawables again.#75

Closed
seivan wants to merge 2 commits intogfx-rs:masterfrom
seivan:patch-1
Closed

Nuke MTLTexture so we can get drawables again.#75
seivan wants to merge 2 commits intogfx-rs:masterfrom
seivan:patch-1

Conversation

@seivan
Copy link
Copy Markdown
Contributor

@seivan seivan commented Feb 25, 2019

Cached values were never destroyed, making the finite drawable pools dry.
Temporary solution until a better one comes along, but fixes iOS issues for now.

Cached values were never destroyed, making the finite drawable pools dry. 
Temporary solution until a better one comes along, but fixes iOS issues for now.
Copy link
Copy Markdown
Member

@kvark kvark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, sorry, I don't think we can do this just that straightforward...
If a framebuffer is in use by GPU, we can't remove it at this stage.

@seivan
Copy link
Copy Markdown
Contributor Author

seivan commented Feb 25, 2019

@kvark I see and totally understand - it's a hack.
How about a wait_idle() to make the hack safer so the train crash is slower?

bors bot added a commit that referenced this pull request Feb 27, 2019
77: Storage indexing, framebuffer tracking, and a bunch of validation fixes r=grovesNL a=kvark

Closes #73
Closes #75
Closes #79

Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
Co-authored-by: Dzmitry Malyshau <dmalyshau@mozilla.com>
@bors bors bot closed this in #77 Feb 27, 2019
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