Skip to content

[html5] Create texture once in unlock#1536

Open
RblSb wants to merge 1 commit into
Kode:mainfrom
RblSb:webgl-unlock
Open

[html5] Create texture once in unlock#1536
RblSb wants to merge 1 commit into
Kode:mainfrom
RblSb:webgl-unlock

Conversation

@RblSb

@RblSb RblSb commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

This is something that kinc does for opengl:
https://github.com/Kode/Kore/blob/v2/Backends/Graphics4/OpenGL/Sources/kinc/backend/graphics4/texture.c.h#L567
This change should improve gpu allocations (which i cannot record in chrome devtools to confirm) for realtime texture regeneration. At least this new unlock shows less overhead in game loop with texture recreation, and Timer.measure agrees.

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.

1 participant