MCPcopy Create free account
hub / github.com/DFHack/dfhack / register_delayed_handles

Function register_delayed_handles

library/modules/Textures.cpp:310–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

308}
309
310static void register_delayed_handles() {
311 DEBUG(textures).print("register delayed handles, size {}\n", g_delayed_regs.size());
312 for (auto& handle : g_delayed_regs) {
313 auto texpos = add_texture(g_handle_to_surface[handle]);
314 g_handle_to_texpos.emplace(handle, texpos);
315 }
316 g_delayed_regs.clear();
317}
318
319// reset point on New Game
320struct tracking_stage_new_region : df::viewscreen_new_regionst {

Callers 4

Calls 4

add_textureFunction · 0.85
printMethod · 0.45
sizeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected