summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl/gl_buffer_cache.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* gl_buffer_cache: Default initialize member variablesLioncash2018-09-061-3/+3
| | | | Ensures that the cache always has a deterministic initial state.
* gl_buffer_cache: Make GetHandle() a const member functionLioncash2018-09-061-1/+1
| | | | | GetHandle() internally calls GetHandle() on the stream_buffer instance, which is a const member function, so this can be made const as well.
* gl_buffer_cache: Remove unnecessary includesLioncash2018-09-061-1/+1
|
* gl_buffer_cache: Make constructor explicitLioncash2018-09-061-1/+1
| | | | Implicit conversions during construction isn't desirable here.
* renderer_opengl: Implement a buffer cache.Markus Wick2018-09-051-0/+57
The idea of this cache is to avoid redundant uploads. So we are going to cache the uploaded buffers within the stream_buffer and just reuse the old pointers. The next step is to implement a VBO cache on GPU memory, but for now, I want to check the overhead of the cache management. Fetching the buffer over PCI-E should be quite fast.