Commit Graph

10 Commits

Author SHA1 Message Date
Firecage
4688c2c969 Fixes proc arguments 2015-07-15 23:52:35 +02:00
MrPerson
04479dc06a Allow any datum to be pooled, including images
Tested on a non-ss13 project and works so it should work here.

Renamed the file from atom_pool to pool

I'll try to recap any other changes here:
Changed pick_n_take to pop when grabbing stuff out of the pool.
Contents is excluded from vars set to initial (would runtime with images), but it gets reset manually by atom/movable.
2015-06-20 21:36:18 -07:00
MrStonedOne
bd6d51a0b5 Massive MC and subsystem rewrite
MC:
	No longer tracks a subsystem's cpu usage. This was basically worthless and took up space on the stat panel
	Can calculate wait down to a tenth of a decisecond to make it fps/world.ticklag agnostic
	Now allows subsystems to have a dynamic wait, that is based on a ratio of how long that subsystem has been taking to process(cost). (This system allows for upper and lower bounds, and an changeable cost delta for each subsystem)
	MC can now be told to init a zlevel

All Subsystems:
	Stats panel now allows child subsystems to pass it a message to add to its stats entry. All subsystems have been moved over to this system - This should cut down on subsystems having to copy and paste the stats proc in order to add to it
	All subsystems now properlly handle being given a zlevel in their init proc

Subsystem changes:
	Air:
		Added air to the dynamic wait subsystem. upper bound: 50, lower bound: 5, cost delta: 3 times process cost
		Air now fires 4 times faster when it can do so without lagging things up
		Pipenet has been merged into air
		Atmos machinery now processes with process_atmos(), ticked by air, not machinery.
		Hotspots (the fire object) are now object pooled
	Pipenet:
		Deleted, added to air
	Machinery:
		Moved all atmos calcualtions in all objects's process() to process_atmos().
	Lighting:
		Added Lighting to the dynamic wait subsystem. upper bound: 20, lower bound: 5, cost delta: 3 times process cost
	Ticker:
		Fixed ticker not updating the lobby panel when game start delayed
		Fixed the game start timer updating rapidly from queued fires when game start delay is removed
	Garbage/qdel:
		qdel will now limit its process time to 2ds a fire.
		qdel can now be given hints as a return to Destroy() as to what should be done with the object.
		the options are:
			queue: (default) this is the normal behavior.
			letmelive: old default to non-null/zero. does nothing with the object
			iwillgc: functionally the same as above, mainly to let people working with objects know that the object will not be queued for GC checking
			harddel: this will queue the object to be deleted without storing a soft reference, mainly to save locate() processing time.
			harddel_now: this will del() the object. To allow for a clean removal of every del() not in qdel
		All objects have been updated to the new system, harddel and iwillgc was not added to any new objects.
		Fixed some objects not GCing because they didn't properlly clear references in Destory()
		Fixed some objects getting qdel'ed preventing other objects from getting GCed because they did not null their reference to that object.
2015-04-29 02:00:25 -07:00
MrPerson
b6c71dc50d Effect pooling
obj/effect/effect all pool themselves.
PoolOrNew() can now be passed a type and a list instead of a type and a location. In that case, the list will be passed to New() via arglist().
RCD's now delete their spark system and properly garbage collect.
2015-03-24 11:44:49 -07:00
Remie Richards
f69fc22deb Prevents infinite loops in PlaceInPool() where Destroy() calls PlaceInPool() and so on 2015-03-11 20:46:14 +00:00
Remie Richards
c34389a63d Makes PlaceInPool() call Destroy() on the atom 2015-03-11 20:21:06 +00:00
Remie Richards
780bcfad12 Adds a call to New() for initialising vars
Cheers Carn!
2014-09-06 07:39:30 +01:00
Remie Richards
a70a1a52ae Support for null loc pool-gets + Pooling Miauw's Say() virtualspeakers 2014-09-02 22:03:35 +01:00
Remie Richards
08676747e7 typos in the readme section. 2014-09-02 00:21:04 +01:00
Remie Richards
ee85f7eced /tg/station Atom Pool + AtomPooling of Emitter beams. 2014-09-02 00:13:06 +01:00