-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
trap_R_inPVVS
is not used
#855
Comments
I've just checked ioq3, Smokin'Guns, RTCW, ET:Legacy, q3rally, OpenJK and WorldOfPadman and while all have a |
And none of XreaL, ET-XreaL, and RBQUAKE-3 have |
I wonder what's for. Maybe we can make use of this feature for some interesting trick, but for now it's not used. |
According to Git history, alien sense blips and old human radar could only detect entities in the PVVS. |
Ah, that's an useful feature then. I would like to have blips, at least as an option. |
PVVS would also be useful for bot calculations to rank targets |
If I remember correctly, PVVS in practice felt just random. PVS is already a crude outer approximation for the visible set: it's normal that it allows you to "see" through heavy walls. PVVS would be even larger and could extend to parts of a map that are hardly connected. I wouldn't be surprised if it incorporates most of a map, or an arbitrarily large portion of it. I see no good use for it, and it could be demanding computationally. |
Note that PVVS is a one time computation just like PVS (at least that's how I understand it...) |
I'd say delete it since if we want to do it again we should do it in the gamelogic without a trap call. There's already e.g. G_CM_inPVS |
It still produces a dense graph, possibly the initial computation (on every map load?) could produce a lag and the queries could be slower than for PVS. |
This sounds like it could be useful to cull shadow-casting lights, but IIRC the old shadowmap code does something else to ensure correct culling. It's also probably easier to just cull light frustum or sphere (or possibly a parallelepiped for directional lights). |
The trap call is slated for removal, see Unvanquished/Unvanquished#3157. The engine functionality is something I'll evaluate for shadowmaps. |
The
trap_R_inPVVS
function is not used, I don't know if we want to keep it for potential modes being ported to Dæmon, but actually this is just something not used by Unvanquished.The text was updated successfully, but these errors were encountered: