--GOLDEN SHINE: Roger, the object that's been lagging the Dev Room (MAP06) is MT_ROCKSPAWNER. AKA Thing Type 1202.

--I'm removing them temporarily through Lua so their item positions remain in the actual map file.
--That way you can simply delete this LUA_SAGEN file if you figure out WHY the rocks are lagging, or 
--if the SRB2 dev team decides to not let the spawners let map lag this badly from them in the first place.

addHook("MapLoad", function(gamemap)
	local CURMAP = mapheaderinfo[gamemap]
	local CURTITLE = CURMAP and CURMAP.lvlttl and string.upper(CURMAP.lvlttl)
	if CURTITLE=="DEVELOPMENT ROOM"
		for m in mobjs.iterate(mobjs)
			if m and m.valid and m.type == MT_ROCKSPAWNER
				P_RemoveMobj(m)
			end
		end	
	end
end) 