Commit Graph

67 Commits

Author SHA1 Message Date
DamianX
b46c7d3cbd Optimize server startup (#30175)
* Avoid creating objects just to delete them

* Avoid deleting turfs' floor_tiles

* defer station alert computer to initialize

* defer turf/New to initialize

* combine the two atom/New implementations to save one proc call

* Fixed maps using stupid types
2021-08-15 00:57:37 +00:00
DeityLink
ba7580590f Better spider eyes and more perception goodness (#29935)
* How come we still aren't making use of plane masters beyond parallax and noir?

* better
2021-07-03 19:24:11 +00:00
Exxion
dba1ca7b0e Revert "Europa lights 2021 (#29551)" (#29851)
This reverts commit 4c25cd6b62.
2021-06-20 22:25:47 +01:00
ShiftyRail
4c25cd6b62 Europa lights 2021 (#29551)
* Mapping changes

* code changes

* conflicts part1

* icons

* wrong remote

* box compiles

* synergy

* fix linter

* review

* Documentation

* Packed mapping

* light tiles? idk

* Metaclub. God there's a lot of lights

* Reduced power costs

* Deff mapping update

* Synergy

* Dam's review

* Damian's review part 2

* linter

* maybe fix schrodinger's lights once and for all?

* the absolute icon_state

* grammar

* nevermind

* review

* gues

* europa lights roidstation (#10)

* Lowfat bagel

* last box touches

* i'm dumb

* klh

Co-authored-by: SonixApache <SonixApache@users.noreply.github.com>
2021-06-20 14:29:59 -05:00
adrian
99ad40c534 Fixes lighting overlay stuff (#27644) 2020-08-25 19:08:03 -03:00
DamianX
6dc7f3b798 Fixed warnings and stuff (#27004)
* added return type to PriorityQueue/List

* fixed /atom/movable/lighting_overlay/forceMove

* fixed /obj/item/weapon/gun/hookshot/whip/windup_box/Fire

* fixed /obj/item/weapon/gun/projectile/hecate/hunting/proc/scoping()

* removed useless stuff from get_blood (src is always null for global procs unless manually set)

* did the thing
2020-07-06 07:53:43 -03:00
DamianX
f5c96279c6 Removed datum pooling (#26992)
* removed pooling

* replace returnToPool with qdel

* did stuff
2020-07-03 19:38:38 -03:00
Adrian Dias
4122bcae07 ok I'm tired. Cleaning duplicated procs part 2 2019-11-11 21:10:35 -03:00
MadmanMartian
87d1c5e7e4 Adds some sanity to lighting_source.dm (#17106)
* a little bit of sanity should fix it

* instead goes for .Remove(src) as that has an internal check to see if the list has the object
2018-01-17 17:20:06 +01:00
Jordan Brown
296f38781a Removes all_lighting_overlays list 2017-09-11 13:58:08 -04:00
Jordan Brown
f0a1db4920 Remove all_lighting_overlays from documentation 2017-09-11 13:57:35 -04:00
Rob Nelson
6b4d4a689d Revert "Porting TGs hotfix for memory leak lighting crash" (#14279) 2017-04-25 05:18:02 -07:00
Probe1
4d3bcd4bf2 Porting TGs hotfix for memory leak lighting crash
https://github.com/tgstation/tgstation/pull/24754

Hope to god it compiles I don't know lighting code AT ALL.

@pjb3005
2017-03-06 19:52:28 -05:00
Sood
ae23a0c991 purge turfs list 2017-02-10 14:38:19 -08:00
Shadowmech88
cea5cc1ff5 Past Grenades (#13717)
* Adds the beginnings of past grenades.

* Have past grenades *mostly* working. Still need to add special cases for monkeys, silicons, power cells, and the nuke, among other things.

* Adds a box of past grenades.

* "Fully" implements past grenades.

* Makes turfs able to be sent into the past.
Some fixes.

* Forgot this.

* This is probably a better solution.

* Grilles, windows, and timers now properly get their unique vars reset when being sent into the past.

* Closets and tables now behave properly when sent into the past.

* Welding tool past proc.

* Forgot about this.

* Removes blind copying of atom locking.

* Makes all resettable_vars lists static.
All entries in resettable_vars lists are now indented only once more than the list declaration.

* Removes some copypaste.

* /datum/var/being_sent_to_past no longer initialized by default.

* Requested change.

* Testing's all done, don't need this anymore.
2017-02-07 16:43:20 -05:00
Shadowmech88
0fe6d3b653 Future Grenades (#13519)
* Adds future grenades.

* Fixes conflicts.

* Indents see_fall() loops.

* Default range argument.

* /mob/dview now ignores send_to_future()

* AI eyes, observers, and the nuke disk are now timeless.

* Blob overminds are now timeless.
Objs are now nullspaced upon being sent to the future, just to ensure they're not damaged by anything in the present.

* Allows mobs deafened by the grenade's effect to still hear the sound it makes when it ends.
2017-01-28 09:32:08 -05:00
Pieter-Jan Briers
4970cde248 In which /vg/station13 gets high. (#13270)
* Code done. Doesn't compile for shit.

* IT COMPILES!

* Hey it almost works.

* Fixes lighting

* Remove thing I had to double check after asking mso.

* More fixes.

* WiP, fixed everything but waitfor

* Done.

* Damnit DM.

* Fixes priorities
2017-01-11 13:43:38 -05:00
Pieter-Jan Briers
662a66405e Fixes null.x (#13291) 2017-01-06 22:48:58 -05:00
Shadowmech88
ff01ec8a63 Fixes lighting for items that use set_light(1). (#12461) 2016-11-03 21:57:37 -05:00
Pieter-Jan Briers
1acc8a2a6f Lazy lighting init, fixes, and optimizations. (#12440)
* Lazy lighting init, fixes, and optimizations.

All corners are now made when first needed (some edge cases due to sloth)

Makes set_light accept null for the l_color parameter.

Fixes set_opacity not update has_opaque_atom on the turf.

Performance optimization to the internal lighting application code.

* NONSENSICAL_VALUE
2016-11-03 20:21:33 -05:00
Pieter-Jan Briers
1213e38857 Some lighting optimizations (#11927) 2016-09-18 07:37:22 -05:00
Pieter-Jan Briers
734c497c14 Fixes lighting bugs caused by the forceMove refactor (#11784) 2016-09-06 11:23:39 -05:00
clusterfack
6edf0208ac 64x64 Sprites (#11214)
* Move DMI files over to 64x64

* Lighting overlay + world.icon_size.

* Change 32 to world icon size

* Adds pixel shift multiplier

* Fix accidentaly 16 -> world_icon_size/4 conversion to proper world_icon_size/2 conversion

* Fixes lighting properly

* Fix spacepods bounds

* Redo all icons with BYONDTools bug fixed

* Update ALL the map files dear god

* Double crayon font size

* Update all screen locs

* Fix contextual clicks

Couldn't use PIXEL MULTIPLIER here for the most part due to the fact most of these are ranges and doubling them would leave empty spaces

* Fixes maptext size and the final touch ups on antag screen locs

* Runs optipng on the DMI files in last commit.

Because my optipng version was outdated (blame the optipng package I had installed) it failed to run on the erge commit. This fixed that.

* Reduces parallax size a bit for 64x64 map sizes

* Fix lobby screens

* Fix DME
2016-08-05 02:07:02 +02:00
DrCelt
7ed76c60f1 NO MORE HALF MEASURES, CLUSTER (#11183)
* NO MORE HALF MEASURES, CLUSTER

* NO MORE HALF MEASURES, CLUSTER

* bugfixes

* bugfixes

* final bugfixes before the final testing

* we have clearance for lift-off, captain.
2016-08-02 20:32:38 -05:00
PJB3005
182ffbbf3b Lighting stuff. (#10943)
Probably fixes null.x.
2016-07-17 16:10:17 +01:00
PJB3005
c9ffaef3c2 Fixes lighting overlays & pooling (#10835) 2016-07-02 17:31:29 +01:00
PJB3005
04b73a186a Fixing some lighting code. (#10780)
Makes lighting corner generation blazingly fast (jesus christ spawn)

Makes overlays be ignored by timestop.

Fixes smart_vis_update(). I'm honestly suprised it's broken-ness didn't
show up earlier.

This might fix the null.x shuttle runtime. Can't say for certain however.
2016-06-28 08:39:03 -07:00
DrCelt
778f64fcb1 PLANES (#10499)
* PLANES

* whoops

* bugfixes

* adds dummy noir obj/screen

* I.plane = initial(I.plane) + assorted bugfixes

* fixed bugs and did a thing with lasers & tasers

* thanks for using a define up there it's really useful and maintainable.
2016-06-17 19:26:18 -05:00
PJB3005
8767e9d260 Fixes #10404 (#10442) 2016-06-08 14:19:34 -05:00
PJB3005
5efc3dfb9f GOONLIGHTS IS HERE GUYS! (#10064)
* GOONLIGHTS IS HERE GUYS!

* fixing shit

* Fixes & soft lighting.

Soft lighting, duh.

Fixed away missions.
2016-06-04 17:47:31 -04:00
Probe1
feb18546bb Removes singloCanEat() from the repository (#9784)
* Removes singloCanEat() from the repository

* Adds 1 to the return so we maintain previous behavior.

* Staged changes had the last laugh.
2016-05-04 19:33:04 -07:00
DeityLink
b7d5338a90 The Big Blob update, Part 1 (#9735)
* blab

* blib

* blub

* bleb

* blob

* bloarb

* blyuiob

* blargarbelb

* changeblob

* oh fuck you travis

* oh are you fucking kidding me

* well duh

* fix spacemove

* damge overlay updates
2016-04-29 06:08:46 -07:00
D3athrow
0c097679b2 Change codebase a bit to allow for feasible 500x500 tile maps, modified
maps to be 500x500x6 and centered existing turfs to allow even expansion
in the future.
2016-02-03 18:28:06 -06:00
clusterfack
f70c113dbe Faster Startup take 2
Moves turfs list creation to initialize
Moves some mine turfs work to initialize
Swaps the order in which the process scheduler and master controller are initialized so that the process scheduler setups have the turfs list
2016-01-24 15:32:45 -06:00
PJB3005
bb98cfc487 Revert "Faster Startup" 2016-01-24 20:25:50 +01:00
clusterfack
f40a13ddc2 Attempt 2
Stops lighting overlays from fucking up
Fixes tunnel spawning and cluster spawning in mine
Fix bugs with mine overlays
2016-01-24 03:33:49 -06:00
PJB3005
3e8428968b Fixes lighting overlays being invisible if pulled from the pool.
I blame either Sanade or N3X15.
2016-01-21 17:08:43 +01:00
clusterfack
80181acd53 Fixes Singlo Shit
Lighting overlays no longer just HAPPEN TO STAY THERE FOREVER when theyve been pooled up to poolings max item limit.
Docking ports are no longer just pulled and eaten by singularities, because yes that was a thing.
2015-12-07 10:01:15 -06:00
PJB3005
c9961ee1de Implements soft lighting & adds a minor optimization to light source code. 2015-11-26 17:54:45 +01:00
D3athrow
540df434be fix runtime bait if theres no luminosity at all when get_lumcount is called. 2015-10-21 12:32:53 -05:00
PJB3005
5089b20d4e Lighting 4: The commenting. 2015-10-20 20:37:41 +02:00
PJB3005
d8b05c4ddf Lighting: The cleanup.
Cleans up light source code, less copy pasta (including @Mloc's define).

Moves luminosity changes to the overlays instead of the turfs.

Lowers some light power values since we're not runnign lambertian.
2015-09-20 21:30:30 +02:00
Intigracy
7cc0133e9c ports a bay fix 2015-09-18 13:39:27 -07:00
D3athrow
b889795a17 The world 2015-08-22 06:21:05 -05:00
PJB3005
9aaa3dd038 Ports Mloc's latest optimizations 2015-08-14 01:52:30 +00:00
PJB3005
6167c2c2ba Fixes the lighting runtime
http://ss13.pomf.se/uploads/2015-08-13_00-22-32.txt
2015-08-14 01:52:30 +00:00
unid15
dbfe19b104 that didn't work as well as I thought 2015-08-07 17:31:44 +00:00
unid15
f8b54034be corners are good (box only) 2015-08-07 17:31:43 +00:00
unid15
6c4d0add75 SHUTTleS 2015-08-06 16:59:13 +00:00
PJB3005
4758cda9ab Fixes lights on turfs that changed dynamicity.
Is dynamicity even a word?
2015-08-05 04:49:24 +00:00