mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 00:33:09 +00:00
Reorder members of Material::Entry
This eliminates alignment padding and reduces size from 48 to 40 bytes. This makes the material HashTable smaller and more cache friendly. No functional change Closes #1013
This commit is contained in:
parent
9f48e1ec15
commit
f1e3dfea74
1 changed files with 2 additions and 2 deletions
|
@ -56,11 +56,11 @@ struct Entry {
|
||||||
}
|
}
|
||||||
|
|
||||||
Key key;
|
Key key;
|
||||||
int16_t value;
|
|
||||||
uint8_t factor[COLOR_NB];
|
|
||||||
EndgameBase<Value>* evaluationFunction;
|
EndgameBase<Value>* evaluationFunction;
|
||||||
EndgameBase<ScaleFactor>* scalingFunction[COLOR_NB]; // Could be one for each
|
EndgameBase<ScaleFactor>* scalingFunction[COLOR_NB]; // Could be one for each
|
||||||
// side (e.g. KPKP, KBPsKs)
|
// side (e.g. KPKP, KBPsKs)
|
||||||
|
int16_t value;
|
||||||
|
uint8_t factor[COLOR_NB];
|
||||||
Phase gamePhase;
|
Phase gamePhase;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue