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

[Perf] Improve texture loading #2425

Open
jailln opened this issue Oct 3, 2024 · 0 comments
Open

[Perf] Improve texture loading #2425

jailln opened this issue Oct 3, 2024 · 0 comments
Labels
perf 🏇 proposal 👍 Proposal of a new feature

Comments

@jailln
Copy link
Contributor

jailln commented Oct 3, 2024

Context

From Don McCurdy's blog:
By default, three.js decompresses images and uploads them to the GPU the first time the image is rendered in the scene. To upload the image sooner, use WebGLRenderer's .initTexture() method. Using ImageBitmapLoader can take the decompression step off the main thread, reducing dropped frames somewhat.

Preload textures around currently loaded tiles when queue is empty (https://threejs.org/docs/?q=renderer#api/en/renderers/WebGLRenderer.initTexture et https://threejs.org/docs/?q=imagebit#api/en/loaders/ImageBitmapLoader)

Description of the proposal

Texture fetching and loading to the GPU could be improved by:

@jailln jailln added perf 🏇 proposal 👍 Proposal of a new feature labels Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
perf 🏇 proposal 👍 Proposal of a new feature
Projects
None yet
Development

No branches or pull requests

1 participant