Comment 1 for bug 1481108

Revision history for this message
Maciej Suminski (orsonmmz) wrote :

What is needed here is a capability to store continuous chunks of data (of various size, as every item may have a different demand), effectively creating a one big continuous block of memory that can be easily transferred to the GPU memory.

Now when I think about the code, perhaps we could replace the raw pointer (VERTEX_CONTAINER::m_vertices) with a std::vector. CACHED_CONTAINER keeps a list of free memory chunks that can be quickly used without frequent memcpying. I am not sure if it can be done automatically with std::vector, so I would rather keep that part in place.

If you can come up with a more efficient implementation, or just an idea how to improve speed - I will eagerly apply your suggestions.