Kesshi Posted February 15, 2017 Share Posted February 15, 2017 Currently i'm trying to reduce the gpu memory usage of our app (especially for mobile devices). I just saw that BabylonJS internally uploads every texture as gl.RGBA to the gpu even if if the source was a jpg or any other image without alpha channel.https://github.com/BabylonJS/Babylon.js/blob/master/src/babylon.engine.ts#L2189 Using gl.RGB in those cases would save 25% of texture memory. I also have some grayscale textures. It would be nice if i could use gl.LUMINANCE to save even more memory. It should be possible to define the desired texture format in my opinion. Would it make sense to add this as another parameter to the Texture constructor? It has a lot of parameters already ... i don't know if there is a better option without a breaking change. Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.