mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-24 21:39:02 -05:00
Improve performance of setPropertyValue function (#3579)
* Cache full property URIs * Multithreaded handling --------- Co-authored-by: Emma Broman <emma.broman@liu.se>
This commit is contained in:
@@ -132,6 +132,9 @@ public:
|
||||
AssetManager& assetManager();
|
||||
LoadingScreen* loadingScreen();
|
||||
|
||||
void invalidatePropertyCache();
|
||||
const std::vector<properties::Property*>& allProperties() const;
|
||||
|
||||
void createUserDirectoriesIfNecessary();
|
||||
|
||||
uint64_t ramInUse() const;
|
||||
@@ -174,6 +177,9 @@ private:
|
||||
|
||||
int _nextCallbackHandle = 0;
|
||||
std::vector<std::pair<CallbackHandle, ModeChangeCallback>> _modeChangeCallbacks;
|
||||
|
||||
mutable bool _isAllPropertiesCacheDirty = true;
|
||||
mutable std::vector<properties::Property*> _allPropertiesCache;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user