Skip to content
This repository has been archived by the owner on May 22, 2020. It is now read-only.

Consider VRAM usage with NPOT textures #13

Open
Zylann opened this issue Nov 15, 2017 · 0 comments
Open

Consider VRAM usage with NPOT textures #13

Zylann opened this issue Nov 15, 2017 · 0 comments

Comments

@Zylann
Copy link
Owner

Zylann commented Nov 15, 2017

I realized that the off-by-one required in terrain textures could become dreadful for VRAM usage, because it makes them non-power-of-two (NPOT). On graphics card, NPOT textures may be upscaled to fit the next power of two, and big terrains could end up occupying 4 times more memory to fit that 1-pixel padding...

Explanation about the 1-pixel padding: https://github.com/Zylann/godot_heightmap_module/blob/master/height_map_data.cpp#L22

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant