On 15.10.2014 20:24, Marek Olšák wrote:
With so many cache managers, memory usage might be a bigger problem.
Usually when a cache manager fails to allocate a new buffer, it clears
the cache and tries again. This is not so useful when there are a lot
of them, because the other managers aren't cleared.
A cache manager also has a limit on how large the cache can be to
prevent the cache from taking too much memory. Again, with several
cache managers, this becomes useless.
Finally, buffers are released from the cache during buffer_create and
buffer_destroy, so the managers really need to receive those 2 calls
regularly. If a cache manager is unused for a while, the cache won't
be cleared and it will occupy memory with old and unused buffers that
could otherwise be freed.
That all makes sense. It turned out to be easier than I expected to use
a single cache manager. :)
--
Earthling Michel Dänzer | http://www.amd.com
Libre software enthusiast | Mesa and X developer
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev