MCPcopy Create free account
hub / github.com/crownengine/crown / flush

Method flush

src/resource/resource_package.cpp:73–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73void ResourcePackage::flush()
74{
75 while (!has_loaded()) {
76 _resource_manager->complete_requests();
77#if CROWN_PLATFORM_EMSCRIPTEN
78 os::sleep(16);
79#endif
80 }
81}
82
83bool ResourcePackage::has_loaded()
84{

Callers 2

main_loopMethod · 0.45
load_apiFunction · 0.45

Calls 2

complete_requestsMethod · 0.80
sleepFunction · 0.50

Tested by

no test coverage detected