]> git.tdb.fi Git - libs/gl.git/commit
Cache the total data size in ResourceManager
authorMikko Rasa <tdb@tdb.fi>
Fri, 4 Dec 2015 11:11:50 +0000 (13:11 +0200)
committerMikko Rasa <tdb@tdb.fi>
Fri, 4 Dec 2015 12:13:32 +0000 (14:13 +0200)
commitab28eedc313d54a037b4d62bce0d3d243423dcf7
tree30efc8ee4b11523ca3e6db3830840cc2fbcdf479
parent5ef508ffc324d4f00239555c0566e4c1f2c9c5c4
Cache the total data size in ResourceManager

Calculating it again every frame turned out to be a fairly large
performance hit in applications with many different resources.
source/resource.h
source/resourcemanager.cpp
source/resourcemanager.h