-
-
Notifications
You must be signed in to change notification settings - Fork 174
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
HTML5 - GPU / Game engine optimised textures #1351
Comments
It's generally just called compressed texture formats and there's some support for that already, however not for html5. It's activated using something like project.addAssets('assets/**', { quality: 0.5 }); in your khafile. Feel free to send a pull-request to make it work in html5. Also please note that the astc-encoder is currently only compiled for Windows (see Kha/Kinc/Tools/kraffiti/Datatypes). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Fixing GPU memory bottleneck with GPU optimised Textures.
the HTML5 backend workflow picks up textures as PNG, JPG or HDR.
However these textures are not optimised for GPUs. Having optimised GPU textures can really improve real-time performances and GPU available memory.
It would be ideal to have ASTC format added.
https://www.khronos.org/blog/create-astc-textures-faster-with-the-new-astcenc-2.0-open-source-compression-tool
ASTC Textures can be loaded as javascript Blob objects and generated using the appropriate tool:
ASTC:
https://github.com/ARM-software/astc-encoder
Example :
how to load AST textures in HTML5/WebGL:
The text was updated successfully, but these errors were encountered: