question about texture management #13
Labels
No Label
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: TheZone/ScuffedMinecraft#13
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi! I was wondering, why not make one texture file per block?
This would allow us to put a direct link to the block texture instead of the texture coordinates in a single file.
unless we put it all in an atlas at runtime which isnt too easy to do as it seems (+ given the codebase this has), when drawing blocks we'd need to switch the texture every time a different block face is drawn, which is kinda slow compared to if we were using the texture coords with only one texture. this also has the downside of slowing down start times by having to load each texture individually and having to allocate gpu memory and a texture object for each of them, which there is a limit on how many texture objects you can have at once.
hope this helps
Considering even Minecraft itself used a single file for all block faces up to 1.12 (I belive), the current approach should be more than fine