]> git.tdb.fi Git - libs/gl.git/commit
Improve performance of Bufferable::update_buffer_data
authorMikko Rasa <tdb@tdb.fi>
Sun, 26 Aug 2012 12:03:21 +0000 (15:03 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 26 Aug 2012 12:03:21 +0000 (15:03 +0300)
commit719578516a4d44a6f39eac3b074ce9f6180b5d53
tree5f5ce727ce11901ec16341369b161faa9618cc48
parentab83db6f1e31d44ced585119a57fd10896e469cb
Improve performance of Bufferable::update_buffer_data

... by avoiding the walk through the entire chain every time it is
called.  It's not necessary to add up all the sizes either, since we can
just get the end of the last Bufferable.
source/bufferable.cpp