mindustry logic execution, map- and schematic- parsing and rendering
Diffstat (limited to 'src/data/renderer.rs')
-rw-r--r--src/data/renderer.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/data/renderer.rs b/src/data/renderer.rs
index 502c81e..89a1b89 100644
--- a/src/data/renderer.rs
+++ b/src/data/renderer.rs
@@ -298,6 +298,15 @@ impl Renderable for Map<'_> {
}
}
+/// Loads all the images into memory
+pub fn warmup() {
+ for map in [&FULL, &QUAR, &EIGH] {
+ for val in map.values() {
+ LazyLock::force(val);
+ }
+ }
+}
+
#[test]
fn all_blocks() {
use crate::block::content::Type;