F13 : cibles distinctes memorisees par entite, le spam sur une cible ne chasse plus les autres

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Cette révision appartient à :
gastineltetClaude Opus 5.5 a révisé 2026-10-14 09:09:16 +02:00
1 Parent 41969835ef
révision b9164eec2a
3 fichiers modifiés
+51 -17

Aucun fichier ne correspond à votre recherche

+16
Voir le fichier
@@ -314,4 +314,20 @@ class AuditFaillesTest {
for (long t = 1050; t < 3000; t += 100) maxLag = Math.max(maxLag, lag.enregistrer(t, cfg, 1.0).cadence());
assertEquals(0, maxLag, 1e-9, "10 coups retenus puis 10 coups/s : rien");
}
// ---------------------------------------------------------------- F13
/** 8 coups par tick sur une entité chassaient les autres cibles de la fenêtre de 32 : 5 entités/s passaient. */
@Test
void F13_cibles_multiples_vues_malgre_le_spam() {
boolean vu = false;
for (int tick = 0; tick < 200; tick++) {
long now = tick * 50L;
for (int k = 0; k < 8; k++) vu |= contient(moteur.attaque(j, now, EtatJoueur.normal(), 0, 1, true), Controle.KILLAURA_CIBLES);
if (tick % 5 == 0) {
int autre = 10 + (tick / 5) % 4;
vu |= contient(moteur.attaque(j, now, EtatJoueur.normal(), 0, autre, true), Controle.KILLAURA_CIBLES);
}
}
assertTrue(vu, "5 entités touchées par seconde : vu");
}
}