Performance: Check for Enemy in range is checking all! from the currently loaded world
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 35/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Veraltet
- Bereich
- game-dev, performance
Rechercherichtung
Start at GUZ.Core.Services.Npc.NpcAiService.UpdateEnemyNpc and read how it looks up enemies in the currently loaded world. Trace how spawned and visible NPCs are represented, then compare those options with the proposed visibility or range checks. Done means the lookup checks only the intended NPCs and avoids the repeated checks described in the issue.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Description
GUZ.Core.Services.Npc.NpcAiService.UpdateEnemyNpc
// FIXME - Performance - Can we clean this up to support only spawned and visible NPCs/Monsters?
// Otherwise we might need to loop through it for each visible monster and 1000x per visible NPC/Monster
// -> about 10k checks per frame!
TODOs
- Optimize lookup to check only
- Visible NPCs
- and/or NPCs within certain range
- Vorherrschende Sprache
- C#
- Sterne
- 33
- Forks
- 1
- Ø Merge
- 1 T. 17 Std.
- Gemergte PRs (30 T.)
- 51
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus Gothic-Unity-Project/Gothic-Unity
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 69/100
Gothic-Unity-Project/Gothic-Unity#487 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 49/100
Gothic-Unity-Project/Gothic-Unity#489 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 42/100
Gothic-Unity-Project/Gothic-Unity#488 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 55/100
Gothic-Unity-Project/Gothic-Unity#486 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
Gothic-Unity-Project/Gothic-Unity#485 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in Gothic-Unity-Project/Gothic-Unity
Ähnliche Issues
-
bug untriaged
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 67/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
CarlosAdrianM/Nesto#610 ·
-
area/resource-registry status/triage
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 76/100
Altinn/altinn-auth#4821 ·
Maintainer antworten meist innerhalb von 1 Tag
-
a11y community:contribution
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
microsoft/fluentui-blazor#5590 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug mcp small
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag