| 130 | } |
| 131 | |
| 132 | BitmapRef AddToCache(const std::string& key, BitmapRef bmp) { |
| 133 | if (bmp) { |
| 134 | cache_size += bmp->GetSize(); |
| 135 | #ifdef CACHE_DEBUG |
| 136 | Output::Debug("Bitmap cache size (Add): {}", cache_size / 1024.0 / 1024.0); |
| 137 | #endif |
| 138 | } |
| 139 | |
| 140 | return (cache[key] = {bmp, Game_Clock::GetFrameTime()}).bitmap; |
| 141 | } |
| 142 | |
| 143 | struct Material { |
| 144 | enum Type { |
no test coverage detected