[DiscordArchive] do u have idea how many phases and objects in them is too many ?
[DiscordArchive] do u have idea how many phases and objects in them is too many ?
Archived author: Rymercyble • Posted: 2023-08-18T16:49:20.435000+00:00
Original source
do u have idea how many phases and objects in them is too many ?
Archived author: Foe • Posted: 2023-08-18T16:49:36.896000+00:00
Original source
```if ((myMask > 2048 || phasemask > 2048) && (myMask < 65535 || phasemask < 65535))```
Archived author: Foe • Posted: 2023-08-18T16:49:54.045000+00:00
Original source
Server side there isn't really a hard cap, and client side doesn't really care since it has no concept of phasing
Archived author: Foe • Posted: 2023-08-18T16:50:02.022000+00:00
Original source
So however many the server can handle really
Archived author: Barnes • Posted: 2023-08-18T16:50:03.065000+00:00
Original source
```c++
[[nodiscard]] bool InSamePhase(uint32 phasemask) const
{
uint32 myMask = GetPhaseMask();
// If either object is in phase >= 64 then use the new behaviour.
if ((myMask > 2048 || phasemask > 2048) && (myMask < 65535 || phasemask < 65535))
{
// phases must match, unless phase is -1 (all)
return
// If i am in the same phase as them.
myMask == phasemask ||
// If i am in phase -1 (all).
myMask == uint32(-1) ||
// If target is in phase -1 (all).
phasemask == uint32(-1);
}
return m_useCombinedPhases ? myMask & phasemask : myMask == phasemask;
}
```