lunixbochs / glshim

OpenGL 1.x driver shim for OpenGL ES devices.
https://boards.openpandora.org/topic/11506-glshim/
MIT License
159 stars 32 forks source link

magic ring buffer mapping for contiguous reads #150

Closed lunixbochs closed 8 years ago

lunixbochs commented 8 years ago

https://fgiesen.wordpress.com/2012/07/21/the-magic-ring-buffer/

With a more complicated memory mapping strategy (control, data, data again), reads from the end of data will be contiguous for free, which makes the DMA strategy better.

lunixbochs commented 8 years ago

The current DMA strat is actually okay, but wasteful because it wraps early if we can't fit.

lunixbochs commented 8 years ago

done in pipe-sync