Skip to content

Commit 67e71a9

Browse files
Order struct members more cache friendly
1 parent a0e5f69 commit 67e71a9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/CachedTile.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@
55

66
struct CachedTile
77
{
8-
uint16_t *buffer;
9-
uint32_t x, y;
8+
uint32_t x;
9+
uint32_t y;
1010
uint8_t z;
1111
bool valid;
12+
uint16_t *buffer;
1213

1314
CachedTile() : buffer(nullptr), valid(false) {}
1415

0 commit comments

Comments
 (0)