Preparing for Writeup

This commit is contained in:
2021-10-15 23:12:29 +02:00
parent 2cb70d7b16
commit b1d8ef4120
40 changed files with 284 additions and 192 deletions
+2 -2
View File
@@ -12,10 +12,10 @@ public:
virtual ~View();
// These are called from the view thread, and handle updating game data
virtual void beginFrame() {}
virtual void beginUpdate() {}
virtual void update() {}
// End frame is called with a lock, so it is safe to write to shared memory
virtual void endFrame() {}
virtual void commitUpdate() {}
// These are called from the render thread
// prepare render is also locked, so reading from shared memory is also safe