MCPcopy Create free account
hub / github.com/ZDoom/Raze / precacheMap

Function precacheMap

source/core/precache.cpp:161–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161void precacheMap()
162{
163 for (auto& sect : sector)
164 {
165 markTextureForPrecache(sect.ceilingtexture, sect.ceilingpal);
166 markTextureForPrecache(sect.floortexture, sect.floorpal);
167 }
168
169 for (auto& wal : wall)
170 {
171 markTextureForPrecache(wal.walltexture, wal.pal);
172
173 if (wal.twoSided())
174 {
175 markTextureForPrecache(wal.overtexture, wal.pal);
176 }
177 }
178}

Callers 4

LoadTheMapFunction · 0.85
SetupPreCacheFunction · 0.85
precacheFunction · 0.85
PreloadCacheFunction · 0.85

Calls 2

markTextureForPrecacheFunction · 0.85
twoSidedMethod · 0.80

Tested by

no test coverage detected