Delaying dynamic buffer release and fixed index offset bug in dynamic buffers. Added animation to demo.