Auto repeat CDXA - Game freezes after a while

This commit is contained in:
2024-05-29 20:33:18 +02:00
parent 676ad434d7
commit 30495279eb
5 changed files with 198 additions and 129 deletions

View File

@@ -12,9 +12,8 @@ namespace JabyEngine {
static constexpr auto NumberOfWords = BitRange::from_to(0, 15);
static constexpr auto CD_OneBlock = Bit(16);
static constexpr BCR for_cd() {
// v Should be replaced with a named constant
return BCR::from(SyncMode0::CD_OneBlock, SyncMode0::NumberOfWords.with(512));
static constexpr BCR for_cd(size_t words) {
return BCR::from(SyncMode0::CD_OneBlock, SyncMode0::NumberOfWords.with(words));
}
};