Skip to content

Default/mutable buffer uploading #285

Answered by TheMostDiligent
RobertMtx asked this question in Q&A
Discussion options

You must be logged in to vote

Should small data objects generally be uploaded in a single call, possibly wasting bandwidth?

The general rule of thumb in GPU programming is to batch commands as much as possible. Updating all at once is going to be much more efficient than issuing many commands to update small parts.

Or is it, in general, better to optimize the amount of data uploaded by increasing the number of uploads? IE, skipping over unchanged data?

That largely depends on your specific use case. If you need to re-upload megabytes of data just to update a few bytes, that is probably not going to be optimal. If you need to update, say at least 50% of the data, then batching will be benefcial.

I can either itera…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@RobertMtx
Comment options

@TheMostDiligent
Comment options

Answer selected by RobertMtx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants