mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-17 05:09:20 +02:00
feat(loading): optional background loading: sound files decoded by worker threads (sound.asyncload), data of dds textures read by worker threads (gfx.textures.streaming), gl textures of vehicles farther than a multiple of the draw range released (gfx.textures.releasedistance); all off by default
This commit is contained in:
@@ -67,6 +67,10 @@ public:
|
||||
std::chrono::steady_clock::time_point
|
||||
timestamp() const {
|
||||
return m_resourcetimestamp; }
|
||||
// updates the time given to resources marked as used, without a sweep
|
||||
void
|
||||
refresh() {
|
||||
m_resourcetimestamp = std::chrono::steady_clock::now(); }
|
||||
|
||||
private:
|
||||
// members:
|
||||
|
||||
Reference in New Issue
Block a user