added synced versions of shared variables and modified set/get methods to adress the right versions of variables

This commit is contained in:
Joakim Kilby
2015-02-17 11:58:57 +01:00
parent 8f924f7696
commit aa66bdeaa4
4 changed files with 39 additions and 15 deletions
+5
View File
@@ -169,6 +169,11 @@ private:
glm::vec2 _sharedScaling;
psc _sharedPosition;
glm::mat4 _sharedViewRotationMatrix;
//synced copies of local variables
glm::vec2 _syncedScaling;
psc _syncedPosition;
glm::mat4 _syncedViewRotationMatrix;
};
+5
View File
@@ -197,6 +197,11 @@ private:
double _sharedTime;
double _sharedDt;
bool _sharedTimeJumped;
//synced copies
double _syncedTime;
double _syncedDt;
bool _syncedTimeJumped;
std::mutex _syncMutex;