Graphics
Intel® graphics drivers and software, compatibility, troubleshooting, performance, and optimization
20601 Discussions

Feature Request: GL_AMD_pinned_memory

idata
Employee
1,835 Views

Hi,

Is it hard to implement GL_AMD_pinned_memory?

It would be very nice for my game as I need to upload tons of small buffer updates. At the moment, I call glMapBufferRange(unsync) for every buffer update, but this command wastes most of the time of my gpu thread.

I know it is possible for such a GL_STREAM_DRAW buffer to map once and continue on using this pointer after unmapping, so I guess the hardware should be able to do this extension. There is also a _huge_ speedup in this hacky way, but I may never release such a hack...

By the way, uploading all of the update at once wouldn't be easy. I'll usually need to change some states and always call glDraw between two buffer updates. glDraw could be easyly delayed, but as I have to change the state between, It would be hard to delay the state changes.

I've tested my parts on a Sandy Bridge GPU.

Thank you,

Markus

0 Kudos
3 Replies
ROBERT_U_Intel
Employee
633 Views

Hi Markus.

I will find out and get back to you.

0 Kudos
idata
Employee
633 Views

Hi Robert,

Thanks for your support.

Has anybody answered?

Markus

0 Kudos
idata
Employee
633 Views

Hello

Sorry, I found another thread requesting for this feature, so sorry for spam 🙂

http://software.intel.com/en-us/forums/topic/279618 OpenGL - Pinned Memory Transfers | Intel® Developer Zone

(but also without answer)

Markus

0 Kudos
Reply