Optimize playsound, starlight, and visualnet generation (#13540)

This commit is contained in:
Wildkins
2022-04-19 13:35:21 -04:00
committed by GitHub
parent d8e24c1252
commit 1007e23d29
13 changed files with 45 additions and 57 deletions

View File

@@ -234,7 +234,7 @@ when portals are shortly lived, or when portals are made to be obvious with spec
var/turf/T = counterpart.get_focused_turf()
var/list/mobs_to_relay = list()
var/list/objs = list()
get_mobs_and_objs_in_view_fast(T, world.view, mobs_to_relay, objs)
get_mobs_or_objs_in_view(T, world.view, mobs_to_relay, objs)
for(var/thing in mobs_to_relay)
var/mob/mob = thing
@@ -251,7 +251,7 @@ when portals are shortly lived, or when portals are made to be obvious with spec
var/turf/T = counterpart.get_focused_turf()
var/list/mobs_to_relay = list()
var/list/objs = list()
get_mobs_and_objs_in_view_fast(T, world.view, mobs_to_relay, objs)
get_mobs_or_objs_in_view(T, world.view, mobs_to_relay, objs)
for(var/thing in mobs_to_relay)
var/mob/mob = thing
@@ -266,7 +266,7 @@ when portals are shortly lived, or when portals are made to be obvious with spec
var/turf/T = counterpart.get_focused_turf()
var/list/mobs_to_relay = list()
var/list/objs = list()
get_mobs_and_objs_in_view_fast(T, world.view, mobs_to_relay, objs)
get_mobs_or_objs_in_view(T, world.view, mobs_to_relay, objs)
for(var/thing in mobs_to_relay)
var/mob/mob = thing
@@ -342,4 +342,4 @@ when portals are shortly lived, or when portals are made to be obvious with spec
/obj/effect/map_effect/portal/line/side_b
name = "portal line B"
icon_state = "portal_line_side_b"
icon_state = "portal_line_side_b"