swwmgz_m/zscript
Marisa the Magician 8d0a087e6c Reduce perf hit of bullet trails by only spawning underwater bubbles actually underwater, instead of always spawning them and then relying on them despawning themselves after checking their own water level.
Further optimization could be possible if I found a way to divide the trace results into segments based on intersections with water volumes. This would save on countless calls to Vec3Offset and PointInSector. Something to keep in mind, I suppose.
While I was at it, I did make the underwater check into a new utility function. It is more or less based on how updating water level is done internally, but saves time by just checking a single point rather than an actor's full height.
Not sure if I'll need to use it elsewhere, but if that turns out to not be the case I'll change it to a private function of the SWWMBulletTrail class afterwards.
2025-03-14 16:23:20 +01:00
..
compat Bump zscript ver to 4.14.1, plus a whole lot of stuff. 2025-03-13 14:50:58 +01:00
dlc Bump zscript ver to 4.14.1, plus a whole lot of stuff. 2025-03-13 14:50:58 +01:00
handler Bump zscript ver to 4.14.1, plus a whole lot of stuff. 2025-03-13 14:50:58 +01:00
hud Bump zscript ver to 4.14.1, plus a whole lot of stuff. 2025-03-13 14:50:58 +01:00
items Bump zscript ver to 4.14.1, plus a whole lot of stuff. 2025-03-13 14:50:58 +01:00
kbase Bump zscript ver to 4.14.1, plus a whole lot of stuff. 2025-03-13 14:50:58 +01:00
menu Bump zscript ver to 4.14.1, plus a whole lot of stuff. 2025-03-13 14:50:58 +01:00
player Bump zscript ver to 4.14.1, plus a whole lot of stuff. 2025-03-13 14:50:58 +01:00
swwm_Gutamatics Update Gutamatics library. 2021-08-10 14:27:43 +02:00
swwm_Polyobjects Revert "Remove ZPolyobject due to licensing concerns." 2022-10-08 15:55:42 +02:00
utility Reduce perf hit of bullet trails by only spawning underwater bubbles actually underwater, instead of always spawning them and then relying on them despawning themselves after checking their own water level. 2025-03-14 16:23:20 +01:00
weapons Bump zscript ver to 4.14.1, plus a whole lot of stuff. 2025-03-13 14:50:58 +01:00
swwm_blod.zsc Fix massive oopsie in blood pool linked list handling. 2025-03-14 15:59:42 +01:00
swwm_common.zsc Bump zscript ver to 4.14.1, plus a whole lot of stuff. 2025-03-13 14:50:58 +01:00
swwm_common_fx.zsc Reduce perf hit of bullet trails by only spawning underwater bubbles actually underwater, instead of always spawning them and then relying on them despawning themselves after checking their own water level. 2025-03-14 16:23:20 +01:00
swwm_gesture.zsc Bump zscript ver to 4.14.1, plus a whole lot of stuff. 2025-03-13 14:50:58 +01:00
swwm_gesture_fx.zsc Bump zscript ver to 4.14.1, plus a whole lot of stuff. 2025-03-13 14:50:58 +01:00
swwm_monsters.zsc Bump zscript ver to 4.14.1, plus a whole lot of stuff. 2025-03-13 14:50:58 +01:00
swwm_thinkers.zsc Bump zscript ver to 4.14.1, plus a whole lot of stuff. 2025-03-13 14:50:58 +01:00
swwm_thinkers_player.zsc Bump zscript ver to 4.14.1, plus a whole lot of stuff. 2025-03-13 14:50:58 +01:00