| 164 | } |
| 165 | |
| 166 | void CGameMtlLibrary::loadSounds() |
| 167 | { |
| 168 | CTimer timer; |
| 169 | timer.Start(); |
| 170 | |
| 171 | #pragma todo("SIMP: новый код падает, вероятно не хватает мьютексов где-то") |
| 172 | for (auto* it : material_pairs) |
| 173 | { |
| 174 | //TTAPI->submit_detach([](SGameMtlPair* pair) { pair->CreateAllSounds(); }, it); |
| 175 | it->CreateAllSounds(); |
| 176 | } |
| 177 | |
| 178 | //TTAPI->wait_for_tasks(); |
| 179 | |
| 180 | Msg("* [%s]: sounds creating time: [%.3f s.]", __FUNCTION__, timer.GetElapsed_sec()); |
| 181 | } |
| 182 | |
| 183 | void CGameMtlLibrary::loadParticles() |
| 184 | { |
nothing calls this directly
no test coverage detected