Changing only part of a Material2d and efficient update on GPU #12517
Unanswered
Droggelbecher
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using the
AsBindGroup
derive macro to create a custom Material2d. Let's say for simplicity it has a uniform and a large storage buffer. Updating that large buffer frequently is obviously expensive, but luckily in my application it changes only rarely.Now, the issue is that even if I just update the uniform, it seems bevy will still do a full reupload of the storage buffer.
So my questions are:
I'm currently working around this with putting the "small" data into vertex attributes, needless to say this is non-ideal, as I have to duplicate it for each vertex.
Thanks in advance for any pointers :)
Beta Was this translation helpful? Give feedback.
All reactions