| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
Ensures that the cache always has a deterministic initial state.
|
|
|
|
|
| |
GetHandle() internally calls GetHandle() on the stream_buffer instance,
which is a const member function, so this can be made const as well.
|
| |
|
|
|
|
| |
Implicit conversions during construction isn't desirable here.
|
|
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.
|