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

Troika to draw text in webgl #2424

Open
gchoqueux opened this issue Oct 2, 2024 · 2 comments
Open

Troika to draw text in webgl #2424

gchoqueux opened this issue Oct 2, 2024 · 2 comments
Labels
proposal 👍 Proposal of a new feature

Comments

@gchoqueux
Copy link
Contributor

gchoqueux commented Oct 2, 2024

Context

itowns Label uses 2d canva

Description of the proposal

Use roika-three-text to have webgl text rendering : https://troika-examples.netlify.app/#text

Identified use-cases

by example itowns Label

other example use-case : https://troika-examples.netlify.app/#globeConnections

links

npm package : https://www.npmjs.com/package/troika-three-text
to go further, troika is framework :

@gchoqueux gchoqueux added the proposal 👍 Proposal of a new feature label Oct 2, 2024
@jailln
Copy link
Contributor

jailln commented Oct 3, 2024

that would be a good improvement :)

@airnez
Copy link
Contributor

airnez commented Jan 17, 2025

I ran a simple performance test on MVT rendering in globe view in my browser and found out that label rendering / handling was the costliest operation. I did not expect that. I suppose that implementing this proposal would greatly improve MVT rendering performances. See screenshots from my chrome dev tools bellow (performance bottom-up view). I highlighted processes related to label handling.

Image

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposal 👍 Proposal of a new feature
Projects
None yet
Development

No branches or pull requests

3 participants