Mercurial > fife-parpg
comparison engine/core/util/resource/pool.h @ 100:69a7d40ccf62
added hashing to pool to improve techdemo loading time
author | jasoka@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Tue, 22 Jul 2008 13:07:51 +0000 |
parents | 90005975cdbb |
children | 54b3984e1afc |
comparison
equal
deleted
inserted
replaced
99:64e7fe3d4288 | 100:69a7d40ccf62 |
---|---|
149 ResourceLoader* loader; | 149 ResourceLoader* loader; |
150 }; | 150 }; |
151 | 151 |
152 void findAndSetProvider(PoolEntry& entry); | 152 void findAndSetProvider(PoolEntry& entry); |
153 std::vector<PoolEntry*> m_entries; | 153 std::vector<PoolEntry*> m_entries; |
154 typedef std::map<ResourceLocation, int> ResourceLocationToEntry; | |
155 ResourceLocationToEntry m_location_to_entry; | |
154 std::vector<IPoolListener*> m_listeners; | 156 std::vector<IPoolListener*> m_listeners; |
155 std::vector<ResourceLoader*> m_loaders; | 157 std::vector<ResourceLoader*> m_loaders; |
156 int m_curind; | 158 int m_curind; |
157 }; | 159 }; |
158 | 160 |