Can I use glBufferSubData and glDrawArrays at the same time?

Greetings,

assume two threads that share a VBO for context resource sharing. One thread uploads to it using glBufferSubData, the other one renders from it using glDrawArrays.

Will either call block the other if different ranges of the same VBO are used?

Regards

Hi,

I don’t think they would block or cause ghosting or anything like that if the ranges don’t overlap and you flush/invalidate/etc. them correctly :slight_smile:
In any case you should be able to catch this behavior in PVRTuneComplete.

bests,
Marton

1 Like

© Imagination Technologies Limited. All rights reserved.
Privacy PolicyTerms & ConditionsTrademarksCookies