|
Flint Engine
Modular C++20 2D game engine powered by SDL3
|
| void Flint::AssetManager::update | ( | ) |
Poll for hot-reload changes and fire pending callbacks.
Must be called once per frame (or at any other regular interval). When hot-reload is disabled, this is a no-op. Internally, the method checks elapsed time against HOT_RELOAD_INTERVAL and PENDING_RELOAD_INTERVAL to debounce rapid file-save events.
A texture whose reload fails to read or decode keeps its previous contents and is retried on the next revision change. An asset whose revision drops to 0 is logged once as missing, and its cached copy is kept until it reappears.