bryanedds / Nu

Repository hosting the open-source Nu Game Engine and related projects.
MIT License
1.05k stars 151 forks source link

Loading all texture data from HDD when we only need the lowest mipmap. #775

Open bryanedds opened 3 months ago

bryanedds commented 3 months ago

Here it seems we need to load all the bytes from HDD in order to make even a single lowest mipmap image -

https://github.com/bryanedds/Nu/blob/02663b3d3797dc8bcc9c254d735c98e31b0b63ee/Nu/Nu/OpenGL/OpenGL.Texture.fs#L265-L299

I've made a query with the maintainer here -

https://github.com/nickbabcock/Pfim/issues/116#issuecomment-2042516502

Let's follow up and see if we can't come up with a reasonable API!