[DiscordArchive] My client is crashing when I get more than 128 aura's is that mean I can't have more?
[DiscordArchive] My client is crashing when I get more than 128 aura's is that mean I can't have more?
Archived author: robinsch • Posted: 2023-05-29T19:16:01.138000+00:00
Original source
expensive application code (needs to check all other auras if they can stack for example), which scales bad, also a lot of other code that's O(N²) in terms of auras. On top of that if you use spells that needs target updates (AOE auras for example) they also scale on top of that with the more players you have close to each other, you have to get creative at some point with how you design the aura / effects objects and references they store: even after optimizing a lot I was bottlenecked by a simple nullptr check at 10K players.
Archived author: Nix • Posted: 2023-05-29T19:23:14.018000+00:00
Original source
Really can't stress how important it is to factor these things in to your decisions
Archived author: robinsch • Posted: 2023-05-29T19:30:18.065000+00:00
Original source
just think about AOE auras, for each player it needs to check all AOE auras then for each target it needs to check each aura if it should stack
Archived author: <o> • Posted: 2023-05-29T19:30:31.312000+00:00
Original source
we had one event in tswow firing in such a bad place you couldn't really play with more than 10 people online
Archived author: robinsch • Posted: 2023-05-29T19:30:33.927000+00:00
Original source
<a:peepoScratch:915917719050780673>
Archived author: vblanco • Posted: 2023-05-29T19:30:40.883000+00:00
Original source
but thats a linear scan, and you can defer it until the end of the frame, or a sync point, and merge events
Archived author: <o> • Posted: 2023-05-29T19:31:04.172000+00:00
Original source
there's a lot of things you can do
Archived author: Nix • Posted: 2023-05-29T19:33:39.550000+00:00
Original source
GL doing that in the emulator rn without a headache
Archived author: vblanco • Posted: 2023-05-29T19:38:23.270000+00:00
Original source
ye i guess the current code is just meh in how it works
Archived author: vblanco • Posted: 2023-05-29T19:38:31.130000+00:00
Original source
ive just never ran into auras/effects ever being an issue in projects