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

Skip to content

Conversation

@almarklein
Copy link
Member

@almarklein almarklein commented Mar 3, 2025

This PR changes the text geometry to use a single buffer for per-glyph data, instead of 4 separate buffers. This makes the code cleaner, and easier to add more data if we want later. It's also faster on the CPU side, because only one call to .update_indices() instead of 4. And possibly faster on the GPU (could not measure that effect though).

@hmaarrfk
Copy link
Contributor

hmaarrfk commented Mar 3, 2025

We have definitely been feeling the effects of multiple calls to send data to the GPU!!!! Thanks for caring about this kind of optimization while everything is fresh in the mind!

@almarklein almarklein marked this pull request as ready for review March 3, 2025 13:24
@almarklein almarklein requested a review from Korijn as a code owner March 3, 2025 13:24
@Korijn Korijn merged commit 735544f into main Mar 3, 2025
14 checks passed
@Korijn Korijn deleted the text-performance2 branch March 3, 2025 13:34
@hmaarrfk
Copy link
Contributor

hmaarrfk commented Mar 3, 2025

I'm pretty sure this broke text_waterfall.py

image

@almarklein
Copy link
Member Author

Lol, we found out at the same time. I'm looking into #1001

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.

4 participants