Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@GDQR
Copy link
Contributor

@GDQR GDQR commented Jan 19, 2024

Texture generation id #129 by the number of textures created, starting from 1 to avoid always creating a texture buffer.
IDs deleted are saved for later use.
TextureRepository now has a pointer over the texture buffers to remove its texture id and create a new one for the next texture with the same id.
Changing the id is an easy way to create another texture buffer, the bad thing is that it is not destroyed until the vram needs it.

If it is accepted, I recommend that the #174 be accepted first.

GDQR added 2 commits January 18, 2024 21:53
initial texturecounter is 0 because texture buffer can't be 0.
if id is 0 always create a texture buffer.
@GDQR
Copy link
Contributor Author

GDQR commented Jan 19, 2024

Thanks for the approval :), now just need h4570 to approve it.

@GDQR GDQR mentioned this pull request Jan 23, 2024
@h4570 h4570 changed the base branch from master to new-rel February 11, 2024 12:36
@h4570
Copy link
Owner

h4570 commented Feb 11, 2024

Thank you for contribution.
I will test these changes along with other PRs on new, temporary new-rel branch.
Changes will be merged into master after my tests.

@h4570 h4570 merged commit 8ed34ab into h4570:new-rel Feb 11, 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.

3 participants