Mercurial > fife-parpg
comparison engine/core/util/resource/pool.cpp @ 588:a46368b3d8a0
* Added checks to setRotation() and setLocation() to prevent performance decrease.
* Commented out the sanityCheck() in pool destructor, it is only usefull for debugging and slows down the engine destruction massively.
author | helios2000@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Fri, 13 Aug 2010 13:54:02 +0000 |
parents | 376b8afc9a18 |
children | b84dbc4665b0 |
comparison
equal
deleted
inserted
replaced
587:2de93d36ca6d | 588:a46368b3d8a0 |
---|---|
44 } | 44 } |
45 | 45 |
46 Pool::~Pool() { | 46 Pool::~Pool() { |
47 FL_LOG(_log, LMsg("Pool destroyed: ") << m_name); | 47 FL_LOG(_log, LMsg("Pool destroyed: ") << m_name); |
48 printStatistics(); | 48 printStatistics(); |
49 sanityCheck(); | 49 // This is only usefull for debugging |
50 //sanityCheck(); | |
50 reset(); | 51 reset(); |
51 std::vector<ResourceLoader*>::iterator loader; | 52 std::vector<ResourceLoader*>::iterator loader; |
52 for (loader = m_loaders.begin(); loader != m_loaders.end(); loader++) { | 53 for (loader = m_loaders.begin(); loader != m_loaders.end(); loader++) { |
53 delete (*loader); | 54 delete (*loader); |
54 } | 55 } |