about summary refs log tree commit diff homepage
path: root/torus.h
diff options
context:
space:
mode:
authorJune McEnroe <programble@gmail.com>2017-07-31 19:21:50 -0400
committerJune McEnroe <programble@gmail.com>2017-07-31 19:21:50 -0400
commit6f8a935ad423b4d44fc7c63804c14858c12ba137 (patch)
treec1c9deb9d2c45b01c9c5bf2ec7ec36c9abe08a64 /torus.h
parentAdjust move speed in client (diff)
downloadtorus-6f8a935ad423b4d44fc7c63804c14858c12ba137.tar.gz
torus-6f8a935ad423b4d44fc7c63804c14858c12ba137.zip
Track tile access counts
Diffstat (limited to '')
-rw-r--r--torus.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/torus.h b/torus.h
index 3a98fe3..ff9c0e8 100644
--- a/torus.h
+++ b/torus.h
@@ -30,6 +30,7 @@ struct Tile {
     time_t access;
     char cells[CELL_ROWS][CELL_COLS] ALIGNED(16);
     uint8_t colors[CELL_ROWS][CELL_COLS] ALIGNED(16);
+    uint32_t accessCount;
 } ALIGNED(4096);
 static_assert(sizeof(struct Tile) == 4096, "struct Tile is page-sized");
 static_assert(offsetof(struct Tile, cells) == 16, "stable cells offset");