forked from TauCetiStation/TauCetiClassic
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some basic tg lighting patches (TauCetiStation#12852)
* Performance Improvements to Lighting Corners (tgstation/tgstation#51546) * Removes unused lighting var (tgstation/tgstation#51932) * Move lighting queues inside the lighting subsystem (tgstation/tgstation#43816) * Speeds up /datum/light_source/proc/update_corners() by 16% or so (tgstation/tgstation#51004) About The Pull Request Just moving /turf/proc/get_corners() into its only caller, slightly shuffled. Also #defining /proc/GetRedPart() etc, which should flatten down to a copytext+text2num operation with #51005. Also defining parse_light_color() since it has two callers and does something trivial (splits #ff0000 into three luminance vars). cl Naksu code: Lighting corner updates are ever so slightly faster. /cl * Fixes lighting updates from opaque objects changing state (ie doors) (tgstation/tgstation#51943) * harddels (tg/57736) * Lighting list cleanup. (tgstation/tgstation#59002) Removed a bunch of back reference lists that were either entirely unused, or contained references that could be found within the datums contained in other lists. lighting corner datums now get deleted with unused. light sources no longer track lighting corners where the appiled light rounds to 0. Fix lighting on turfs that gained dynamic lighting mid round. lazy init corner datums. these two are related. by decoupling corner datums from the turfs dynamic lighting state, we can use them to know what level of light a non-dynamic light turf should have once it gains dynamic light. Also should free up some memory not storing these datums in maint. Corner datums only exist on a turf that has light cast upon it by the dynamic lighting system. Lighting corners are now lazy inited and deleted. they should always (and only exist) if there is a light source shining on it within range (even if the turf has no dynamic lighting). This is needed to support turfs that become lighting enabled mid round. On the plus side, they will no longer be generated on full dark turfs. --------- Co-authored-by: Bobbahbrown <[email protected]> Co-authored-by: Jordan Brown <[email protected]> Co-authored-by: vuonojenmustaturska <[email protected]> Co-authored-by: AnturK <[email protected]> Co-authored-by: Kyle Spier-Swenson <[email protected]>
- Loading branch information
1 parent
5a88270
commit e6cc8d3
Showing
8 changed files
with
247 additions
and
270 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.