| 328 | int o2 = b2->GetFileOrder(n2 + strlen(b2->GetPrefix())); |
| 329 | return o1 - o2; |
| 330 | } |
| 331 | |
| 332 | void TextBankGL33::Preload() |
| 333 | { |
| 334 | Compact(); |
| 335 | |
| 336 | DWORD start = Foundation::GlobalTickCount(); |
| 337 | QSort(_texture.Data(), _texture.Size(), CompareTextureFileOrderGL33); |
| 338 | |
| 339 | for (int i = 0; i < _texture.Size(); i++) |
| 340 | { |
| 341 | TextureGL33* tex = _texture[i]; |
| 342 | if (!tex) |
| 343 | continue; |
| 344 | tex->LoadHeadersNV(); |
| 345 | ProgressRefresh(); |
| 346 | } |
| 347 | DWORD end = Foundation::GlobalTickCount(); |
| 348 | |
| 349 | LOG_DEBUG(Graphics, "GL33: Preload {} textures - {} ms", _texture.Size(), end - start); |
| 350 | } |
| 351 |
nothing calls this directly
no test coverage detected