quakeforge/libs/scene
Bill Currie 7240d2dc80 [model] Move plane info into mnode_t, and visframe out
The main goal was to get visframe out of mnode_t to make it thread-safe
(each thread can have its own visframe array), but moving the plane info
into mnode_t made for better data access patters when traversing the bsp
tree as the plane is right there with the child indices. Nicely, the
size of mnode_t is the same as before (64 bytes due to alignment), with
4 bytes wasted.

Performance-wise, there seems to be very little difference. Maybe
slightly slower.

The unfortunate thing about the change is the plane distance is negated,
possibly leading to some confusion, particularly since the box and
sphere culling functions were affected. However, this is so point-plane
distance calculations can be done with a single 4d dot product.
2022-05-22 12:41:23 +09:00
..
test [scene] Make transforms owned by the scene 2022-02-14 20:01:36 +09:00
camera.c [scene] Add a camera object 2022-02-25 10:41:50 +09:00
entity.c [renderer] Support multiple entity queues 2022-03-05 02:05:39 +09:00
hierarchy.c [scene] Implement Hierarchy_Copy 2022-05-08 11:14:00 +09:00
light.c [model] Move plane info into mnode_t, and visframe out 2022-05-22 12:41:23 +09:00
Makemodule.am [build] Fix some make distcheck issues 2022-05-06 15:50:13 +09:00
scene.c [model] Move plane info into mnode_t, and visframe out 2022-05-22 12:41:23 +09:00
transform.c [scene] Implement Hierarchy_Copy 2022-05-08 11:14:00 +09:00