evil hack: map the buffer once and use this pointer after unmaping

This isn't allowed by gl and may _only_ work, if the driver uses cpu bound buffer.
But it may speed up :-)
This commit is contained in:
degasus
2013-02-05 00:53:14 +01:00
parent f677b8cba3
commit 1d86dafbe2
2 changed files with 15 additions and 1 deletions

View File

@ -29,6 +29,7 @@ enum StreamType {
STREAM_DETECT,
MAP_AND_ORPHAN,
MAP_AND_SYNC,
MAP_AND_RISK,
PINNED_MEMORY,
BUFFERSUBDATA
};