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

Texture generation id #175

Merged
merged 3 commits into from
Feb 11, 2024
Merged

Texture generation id #175

merged 3 commits into from
Feb 11, 2024

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.

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
3 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.

3 participants