mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-11-04 00:08:00 +00:00
GEEKING
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,339 @@
|
||||
<roblox xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.watrbx.wtf/roblox.xsd" version="4">
|
||||
<External>null</External>
|
||||
<External>nil</External>
|
||||
<Item class="Workspace" referent="RBX0">
|
||||
<Properties>
|
||||
<Ref name="CurrentCamera">RBX1</Ref>
|
||||
<double name="DistributedGameTime">0</double>
|
||||
<CoordinateFrame name="ModelInPrimary">
|
||||
<X>0</X>
|
||||
<Y>0</Y>
|
||||
<Z>0</Z>
|
||||
<R00>1</R00>
|
||||
<R01>0</R01>
|
||||
<R02>0</R02>
|
||||
<R10>0</R10>
|
||||
<R11>1</R11>
|
||||
<R12>0</R12>
|
||||
<R20>0</R20>
|
||||
<R21>0</R21>
|
||||
<R22>1</R22>
|
||||
</CoordinateFrame>
|
||||
<string name="Name">Workspace</string>
|
||||
<Ref name="PrimaryPart">null</Ref>
|
||||
</Properties>
|
||||
<Item class="Camera" referent="RBX1">
|
||||
<Properties>
|
||||
<Ref name="CameraSubject">null</Ref>
|
||||
<token name="CameraType">0</token>
|
||||
<CoordinateFrame name="CoordinateFrame">
|
||||
<X>-614.737976</X>
|
||||
<Y>1742.95764</Y>
|
||||
<Z>2968.40259</Z>
|
||||
<R00>0.92476958</R00>
|
||||
<R01>-0.185348973</R01>
|
||||
<R02>0.33233577</R02>
|
||||
<R10>1.4901163e-008</R10>
|
||||
<R11>0.87335515</R11>
|
||||
<R12>0.487084001</R12>
|
||||
<R20>-0.380527705</R20>
|
||||
<R21>-0.450440466</R21>
|
||||
<R22>0.807652175</R22>
|
||||
</CoordinateFrame>
|
||||
<float name="FieldOfView">70</float>
|
||||
<CoordinateFrame name="Focus">
|
||||
<X>-621.384705</X>
|
||||
<Y>1733.21594</Y>
|
||||
<Z>2952.24951</Z>
|
||||
<R00>1</R00>
|
||||
<R01>0</R01>
|
||||
<R02>0</R02>
|
||||
<R10>0</R10>
|
||||
<R11>1</R11>
|
||||
<R12>0</R12>
|
||||
<R20>0</R20>
|
||||
<R21>0</R21>
|
||||
<R22>1</R22>
|
||||
</CoordinateFrame>
|
||||
<string name="Name">Camera</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="Terrain" referent="RBX2">
|
||||
<Properties>
|
||||
<bool name="Anchored">true</bool>
|
||||
<bool name="Archivable">true</bool>
|
||||
<float name="BackParamA">-0.5</float>
|
||||
<float name="BackParamB">0.5</float>
|
||||
<token name="BackSurface">0</token>
|
||||
<token name="BackSurfaceInput">0</token>
|
||||
<float name="BottomParamA">-0.5</float>
|
||||
<float name="BottomParamB">0.5</float>
|
||||
<token name="BottomSurface">4</token>
|
||||
<token name="BottomSurfaceInput">0</token>
|
||||
<int name="BrickColor">194</int>
|
||||
<CoordinateFrame name="CFrame">
|
||||
<X>-2</X>
|
||||
<Y>126</Y>
|
||||
<Z>-2</Z>
|
||||
<R00>1</R00>
|
||||
<R01>0</R01>
|
||||
<R02>0</R02>
|
||||
<R10>0</R10>
|
||||
<R11>1</R11>
|
||||
<R12>0</R12>
|
||||
<R20>0</R20>
|
||||
<R21>0</R21>
|
||||
<R22>1</R22>
|
||||
</CoordinateFrame>
|
||||
<bool name="CanCollide">true</bool>
|
||||
<string name="ClusterGridV2"></string>
|
||||
<float name="Elasticity">0.5</float>
|
||||
<float name="Friction">0.300000012</float>
|
||||
<float name="FrontParamA">-0.5</float>
|
||||
<float name="FrontParamB">0.5</float>
|
||||
<token name="FrontSurface">0</token>
|
||||
<token name="FrontSurfaceInput">0</token>
|
||||
<float name="LeftParamA">-0.5</float>
|
||||
<float name="LeftParamB">0.5</float>
|
||||
<token name="LeftSurface">0</token>
|
||||
<token name="LeftSurfaceInput">0</token>
|
||||
<bool name="Locked">true</bool>
|
||||
<token name="Material">256</token>
|
||||
<string name="Name">Terrain</string>
|
||||
<float name="Reflectance">0</float>
|
||||
<float name="RightParamA">-0.5</float>
|
||||
<float name="RightParamB">0.5</float>
|
||||
<token name="RightSurface">0</token>
|
||||
<token name="RightSurfaceInput">0</token>
|
||||
<Vector3 name="RotVelocity">
|
||||
<X>0</X>
|
||||
<Y>0</Y>
|
||||
<Z>0</Z>
|
||||
</Vector3>
|
||||
<float name="TopParamA">-0.5</float>
|
||||
<float name="TopParamB">0.5</float>
|
||||
<token name="TopSurface">3</token>
|
||||
<token name="TopSurfaceInput">0</token>
|
||||
<float name="Transparency">0</float>
|
||||
<Vector3 name="Velocity">
|
||||
<X>0</X>
|
||||
<Y>0</Y>
|
||||
<Z>0</Z>
|
||||
</Vector3>
|
||||
<Vector3 name="size">
|
||||
<X>2044</X>
|
||||
<Y>252</Y>
|
||||
<Z>2044</Z>
|
||||
</Vector3>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="Script" referent="RBX3">
|
||||
<Properties>
|
||||
<bool name="Disabled">true</bool>
|
||||
<Content name="LinkedSource"><null></null></Content>
|
||||
<string name="Name">TestScript</string>
|
||||
<ProtectedString name="Source">local numSecondsToRunFor = 10 -- number of physics seconds to run for (for stress tests, could take much longer in realtime)
|
||||
local numParts = 7000
|
||||
local partSizeMultiplier = 1 -- for big parts, use 10 maybe
|
||||
|
||||
local parts = {}
|
||||
for i = 1, numParts do
|
||||
	local newPart = Instance.new("Part")
|
||||
	newPart.Anchored = false
|
||||
	newPart.CanCollide = false
|
||||
	newPart.formFactor = "Custom"
|
||||
	newPart.Size = newPart.Size * partSizeMultiplier
|
||||
	newPart.CFrame = CFrame.Angles(math.random()*math.pi*2, math.random()*math.pi*2, math.random()*math.pi*2) + 2000 * Vector3.new(math.random()-.5, math.random()+.01, math.random()-.5)
|
||||
|
||||
	local newForce = Instance.new("BodyForce")
|
||||
	newForce.force = Vector3.new(0, newPart:GetMass()*196.2, 0)
|
||||
	newForce.Parent = newPart
|
||||
|
||||
	-- to ensure not sleeping
|
||||
	--newPart.RotVelocity = 5000 * Vector3.new(math.random()-.5, math.random()-.5, math.random()-.5)
|
||||
|
||||
	newPart.Parent = game.Workspace
|
||||
	table.insert(parts, newPart)
|
||||
end
|
||||
|
||||
start = tick()
|
||||
r = game:service("RunService")
|
||||
t = r.Stepped:wait()
|
||||
local startT = t
|
||||
while (t - startT) < numSecondsToRunFor do
|
||||
	t = r.Stepped:wait()
|
||||
end
|
||||
|
||||
stop = tick() - start
|
||||
|
||||
-- just making it here without getting timed out is the win
|
||||
print(script.Parent.Name .. " passed in " .. stop .. " seconds.")
|
||||
script.Parent:Check(true, "passed in " .. stop .. " seconds.")
|
||||
</ProtectedString>
|
||||
</Properties>
|
||||
</Item>
|
||||
</Item>
|
||||
<Item class="StarterPack" referent="RBX4">
|
||||
<Properties>
|
||||
<string name="Name">StarterPack</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="StarterGui" referent="RBX5">
|
||||
<Properties>
|
||||
<string name="Name">StarterGui</string>
|
||||
<bool name="ShowDevelopmentGui">true</bool>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="SoundService" referent="RBX6">
|
||||
<Properties>
|
||||
<token name="AmbientReverb">0</token>
|
||||
<float name="DistanceFactor">10</float>
|
||||
<float name="DopplerScale">1</float>
|
||||
<string name="Name">Soundscape</string>
|
||||
<float name="RolloffScale">1</float>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="CollectionService" referent="RBX7">
|
||||
<Properties>
|
||||
<string name="Name">CollectionService</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="PhysicsService" referent="RBX8">
|
||||
<Properties>
|
||||
<string name="Name">PhysicsService</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="BadgeService" referent="RBX9">
|
||||
<Properties>
|
||||
<string name="Name">BadgeService</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="Geometry" referent="RBX10">
|
||||
<Properties>
|
||||
<string name="Name">Geometry</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="RenderHooksService" referent="RBX11">
|
||||
<Properties>
|
||||
<string name="Name">RenderHooksService</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="SocialService" referent="RBX12">
|
||||
<Properties>
|
||||
<string name="Name">SocialService</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="Debris" referent="RBX13">
|
||||
<Properties>
|
||||
<int name="MaxItems">1000</int>
|
||||
<string name="Name">Debris</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="TimerService" referent="RBX14">
|
||||
<Properties>
|
||||
<string name="Name">Instance</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="ScriptInformationProvider" referent="RBX15">
|
||||
<Properties>
|
||||
<string name="Name">Instance</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="CookiesService" referent="RBX16">
|
||||
<Properties>
|
||||
<string name="Name">CookiesService</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="TeleportService" referent="RBX17">
|
||||
<Properties>
|
||||
<string name="Name">Teleport Service</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="Players" referent="RBX18">
|
||||
<Properties>
|
||||
<bool name="CharacterAutoLoads">true</bool>
|
||||
<string name="Name">Players</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="Selection" referent="RBX19">
|
||||
<Properties>
|
||||
<string name="Name">Selection</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="Lighting" referent="RBX20">
|
||||
<Properties>
|
||||
<Color3 name="Ambient">4286611584</Color3>
|
||||
<float name="Brightness">1</float>
|
||||
<Color3 name="ColorShift_Bottom">4278190080</Color3>
|
||||
<Color3 name="ColorShift_Top">4278190080</Color3>
|
||||
<Color3 name="FogColor">4290822336</Color3>
|
||||
<float name="FogEnd">100000</float>
|
||||
<float name="FogStart">0</float>
|
||||
<float name="GeographicLatitude">41.7332993</float>
|
||||
<string name="Name">Lighting</string>
|
||||
<Color3 name="ShadowColor">4289967032</Color3>
|
||||
<string name="TimeOfDay">14:00:00</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="ChangeHistoryService" referent="RBX21">
|
||||
<Properties>
|
||||
<string name="Name">ChangeHistoryService</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="TestService" referent="RBX22">
|
||||
<Properties>
|
||||
<bool name="AutoRuns">true</bool>
|
||||
<string name="Description"></string>
|
||||
<bool name="Is30FpsThrottleEnabled">false</bool>
|
||||
<bool name="IsPhysicsEnvironmentalThrottled">false</bool>
|
||||
<bool name="IsSleepAllowed">false</bool>
|
||||
<string name="Name">TestService</string>
|
||||
<double name="Timeout">600</double>
|
||||
</Properties>
|
||||
<Item class="Script" referent="RBX23">
|
||||
<Properties>
|
||||
<bool name="Disabled">false</bool>
|
||||
<Content name="LinkedSource"><null></null></Content>
|
||||
<string name="Name">TestScript</string>
|
||||
<ProtectedString name="Source">local numSecondsToRunFor = 10 -- number of physics seconds to run for (for stress tests, could take much longer in realtime)
|
||||
local numParts = 7000
|
||||
local partSizeMultiplier = 1 -- for big parts, use 10 maybe
|
||||
|
||||
local parts = {}
|
||||
for i = 1, numParts do
|
||||
	local newPart = Instance.new("Part")
|
||||
	newPart.Anchored = false
|
||||
	newPart.CanCollide = false
|
||||
	newPart.formFactor = "Custom"
|
||||
	newPart.Size = newPart.Size * partSizeMultiplier
|
||||
	newPart.CFrame = CFrame.Angles(math.random()*math.pi*2, math.random()*math.pi*2, math.random()*math.pi*2) + 2000 * Vector3.new(math.random()-.5, math.random()+.01, math.random()-.5)
|
||||
|
||||
	local newForce = Instance.new("BodyForce")
|
||||
	newForce.force = Vector3.new(0, newPart:GetMass()*196.2, 0)
|
||||
	newForce.Parent = newPart
|
||||
|
||||
	-- to ensure not sleeping
|
||||
	--newPart.RotVelocity = 5000 * Vector3.new(math.random()-.5, math.random()-.5, math.random()-.5)
|
||||
|
||||
	newPart.Parent = game.Workspace
|
||||
	table.insert(parts, newPart)
|
||||
end
|
||||
|
||||
start = tick()
|
||||
r = game:service("RunService")
|
||||
t = r.Stepped:wait()
|
||||
local startT = t
|
||||
while (t - startT) < numSecondsToRunFor do
|
||||
	t = r.Stepped:wait()
|
||||
end
|
||||
|
||||
stop = tick() - start
|
||||
|
||||
-- just making it here without getting timed out is the win
|
||||
print(script.Parent.Name .. " passed in " .. stop .. " seconds.")
|
||||
script.Parent:Check(true, "passed in " .. stop .. " seconds.")
|
||||
</ProtectedString>
|
||||
</Properties>
|
||||
</Item>
|
||||
</Item>
|
||||
</roblox>
|
||||
@@ -0,0 +1,339 @@
|
||||
<roblox xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.watrbx.wtf/roblox.xsd" version="4">
|
||||
<External>null</External>
|
||||
<External>nil</External>
|
||||
<Item class="Workspace" referent="RBX0">
|
||||
<Properties>
|
||||
<Ref name="CurrentCamera">RBX1</Ref>
|
||||
<double name="DistributedGameTime">0</double>
|
||||
<CoordinateFrame name="ModelInPrimary">
|
||||
<X>0</X>
|
||||
<Y>0</Y>
|
||||
<Z>0</Z>
|
||||
<R00>1</R00>
|
||||
<R01>0</R01>
|
||||
<R02>0</R02>
|
||||
<R10>0</R10>
|
||||
<R11>1</R11>
|
||||
<R12>0</R12>
|
||||
<R20>0</R20>
|
||||
<R21>0</R21>
|
||||
<R22>1</R22>
|
||||
</CoordinateFrame>
|
||||
<string name="Name">Workspace</string>
|
||||
<Ref name="PrimaryPart">null</Ref>
|
||||
</Properties>
|
||||
<Item class="Camera" referent="RBX1">
|
||||
<Properties>
|
||||
<Ref name="CameraSubject">null</Ref>
|
||||
<token name="CameraType">0</token>
|
||||
<CoordinateFrame name="CoordinateFrame">
|
||||
<X>-608.75592</X>
|
||||
<Y>1751.72473</Y>
|
||||
<Z>2982.9397</Z>
|
||||
<R00>0.92476958</R00>
|
||||
<R01>-0.185348973</R01>
|
||||
<R02>0.33233577</R02>
|
||||
<R10>1.4901163e-008</R10>
|
||||
<R11>0.87335515</R11>
|
||||
<R12>0.487084001</R12>
|
||||
<R20>-0.380527705</R20>
|
||||
<R21>-0.450440466</R21>
|
||||
<R22>0.807652175</R22>
|
||||
</CoordinateFrame>
|
||||
<float name="FieldOfView">70</float>
|
||||
<CoordinateFrame name="Focus">
|
||||
<X>-615.402649</X>
|
||||
<Y>1741.98303</Y>
|
||||
<Z>2966.78662</Z>
|
||||
<R00>1</R00>
|
||||
<R01>0</R01>
|
||||
<R02>0</R02>
|
||||
<R10>0</R10>
|
||||
<R11>1</R11>
|
||||
<R12>0</R12>
|
||||
<R20>0</R20>
|
||||
<R21>0</R21>
|
||||
<R22>1</R22>
|
||||
</CoordinateFrame>
|
||||
<string name="Name">Camera</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="Terrain" referent="RBX2">
|
||||
<Properties>
|
||||
<bool name="Anchored">true</bool>
|
||||
<bool name="Archivable">true</bool>
|
||||
<float name="BackParamA">-0.5</float>
|
||||
<float name="BackParamB">0.5</float>
|
||||
<token name="BackSurface">0</token>
|
||||
<token name="BackSurfaceInput">0</token>
|
||||
<float name="BottomParamA">-0.5</float>
|
||||
<float name="BottomParamB">0.5</float>
|
||||
<token name="BottomSurface">4</token>
|
||||
<token name="BottomSurfaceInput">0</token>
|
||||
<int name="BrickColor">194</int>
|
||||
<CoordinateFrame name="CFrame">
|
||||
<X>-2</X>
|
||||
<Y>126</Y>
|
||||
<Z>-2</Z>
|
||||
<R00>1</R00>
|
||||
<R01>0</R01>
|
||||
<R02>0</R02>
|
||||
<R10>0</R10>
|
||||
<R11>1</R11>
|
||||
<R12>0</R12>
|
||||
<R20>0</R20>
|
||||
<R21>0</R21>
|
||||
<R22>1</R22>
|
||||
</CoordinateFrame>
|
||||
<bool name="CanCollide">true</bool>
|
||||
<string name="ClusterGridV2"></string>
|
||||
<float name="Elasticity">0.5</float>
|
||||
<float name="Friction">0.300000012</float>
|
||||
<float name="FrontParamA">-0.5</float>
|
||||
<float name="FrontParamB">0.5</float>
|
||||
<token name="FrontSurface">0</token>
|
||||
<token name="FrontSurfaceInput">0</token>
|
||||
<float name="LeftParamA">-0.5</float>
|
||||
<float name="LeftParamB">0.5</float>
|
||||
<token name="LeftSurface">0</token>
|
||||
<token name="LeftSurfaceInput">0</token>
|
||||
<bool name="Locked">true</bool>
|
||||
<token name="Material">256</token>
|
||||
<string name="Name">Terrain</string>
|
||||
<float name="Reflectance">0</float>
|
||||
<float name="RightParamA">-0.5</float>
|
||||
<float name="RightParamB">0.5</float>
|
||||
<token name="RightSurface">0</token>
|
||||
<token name="RightSurfaceInput">0</token>
|
||||
<Vector3 name="RotVelocity">
|
||||
<X>0</X>
|
||||
<Y>0</Y>
|
||||
<Z>0</Z>
|
||||
</Vector3>
|
||||
<float name="TopParamA">-0.5</float>
|
||||
<float name="TopParamB">0.5</float>
|
||||
<token name="TopSurface">3</token>
|
||||
<token name="TopSurfaceInput">0</token>
|
||||
<float name="Transparency">0</float>
|
||||
<Vector3 name="Velocity">
|
||||
<X>0</X>
|
||||
<Y>0</Y>
|
||||
<Z>0</Z>
|
||||
</Vector3>
|
||||
<Vector3 name="size">
|
||||
<X>2044</X>
|
||||
<Y>252</Y>
|
||||
<Z>2044</Z>
|
||||
</Vector3>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="Script" referent="RBX3">
|
||||
<Properties>
|
||||
<bool name="Disabled">true</bool>
|
||||
<Content name="LinkedSource"><null></null></Content>
|
||||
<string name="Name">TestScript</string>
|
||||
<ProtectedString name="Source">local numSecondsToRunFor = 10 -- number of physics seconds to run for (for stress tests, could take much longer in realtime)
|
||||
local numParts = 7000
|
||||
local partSizeMultiplier = 1 -- for big parts, use 10 maybe
|
||||
|
||||
local parts = {}
|
||||
for i = 1, numParts do
|
||||
	local newPart = Instance.new("Part")
|
||||
	newPart.Anchored = true
|
||||
	newPart.CanCollide = false
|
||||
	newPart.formFactor = "Custom"
|
||||
	newPart.Size = newPart.Size * partSizeMultiplier
|
||||
	newPart.CFrame = CFrame.Angles(math.random()*math.pi*2, math.random()*math.pi*2, math.random()*math.pi*2) + 2000 * Vector3.new(math.random()-.5, math.random()+.01, math.random()-.5)
|
||||
|
||||
	local newForce = Instance.new("BodyForce")
|
||||
	newForce.force = Vector3.new(0, newPart:GetMass()*196.2, 0)
|
||||
	--newForce.Parent = newPart
|
||||
|
||||
	-- to ensure not sleeping
|
||||
	--newPart.RotVelocity = 5000 * Vector3.new(math.random()-.5, math.random()-.5, math.random()-.5)
|
||||
|
||||
	newPart.Parent = game.Workspace
|
||||
	table.insert(parts, newPart)
|
||||
end
|
||||
|
||||
start = tick()
|
||||
r = game:service("RunService")
|
||||
t = r.Stepped:wait()
|
||||
local startT = t
|
||||
while (t - startT) < numSecondsToRunFor do
|
||||
	t = r.Stepped:wait()
|
||||
end
|
||||
|
||||
stop = tick() - start
|
||||
|
||||
-- just making it here without getting timed out is the win
|
||||
print(script.Parent.Name .. " passed in " .. stop .. " seconds.")
|
||||
script.Parent:Check(true, "passed in " .. stop .. " seconds.")
|
||||
</ProtectedString>
|
||||
</Properties>
|
||||
</Item>
|
||||
</Item>
|
||||
<Item class="StarterPack" referent="RBX4">
|
||||
<Properties>
|
||||
<string name="Name">StarterPack</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="StarterGui" referent="RBX5">
|
||||
<Properties>
|
||||
<string name="Name">StarterGui</string>
|
||||
<bool name="ShowDevelopmentGui">true</bool>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="SoundService" referent="RBX6">
|
||||
<Properties>
|
||||
<token name="AmbientReverb">0</token>
|
||||
<float name="DistanceFactor">10</float>
|
||||
<float name="DopplerScale">1</float>
|
||||
<string name="Name">Soundscape</string>
|
||||
<float name="RolloffScale">1</float>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="CollectionService" referent="RBX7">
|
||||
<Properties>
|
||||
<string name="Name">CollectionService</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="PhysicsService" referent="RBX8">
|
||||
<Properties>
|
||||
<string name="Name">PhysicsService</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="BadgeService" referent="RBX9">
|
||||
<Properties>
|
||||
<string name="Name">BadgeService</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="Geometry" referent="RBX10">
|
||||
<Properties>
|
||||
<string name="Name">Geometry</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="RenderHooksService" referent="RBX11">
|
||||
<Properties>
|
||||
<string name="Name">RenderHooksService</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="SocialService" referent="RBX12">
|
||||
<Properties>
|
||||
<string name="Name">SocialService</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="Debris" referent="RBX13">
|
||||
<Properties>
|
||||
<int name="MaxItems">1000</int>
|
||||
<string name="Name">Debris</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="TimerService" referent="RBX14">
|
||||
<Properties>
|
||||
<string name="Name">Instance</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="ScriptInformationProvider" referent="RBX15">
|
||||
<Properties>
|
||||
<string name="Name">Instance</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="CookiesService" referent="RBX16">
|
||||
<Properties>
|
||||
<string name="Name">CookiesService</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="TeleportService" referent="RBX17">
|
||||
<Properties>
|
||||
<string name="Name">Teleport Service</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="Players" referent="RBX18">
|
||||
<Properties>
|
||||
<bool name="CharacterAutoLoads">true</bool>
|
||||
<string name="Name">Players</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="Selection" referent="RBX19">
|
||||
<Properties>
|
||||
<string name="Name">Selection</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="Lighting" referent="RBX20">
|
||||
<Properties>
|
||||
<Color3 name="Ambient">4286611584</Color3>
|
||||
<float name="Brightness">1</float>
|
||||
<Color3 name="ColorShift_Bottom">4278190080</Color3>
|
||||
<Color3 name="ColorShift_Top">4278190080</Color3>
|
||||
<Color3 name="FogColor">4290822336</Color3>
|
||||
<float name="FogEnd">100000</float>
|
||||
<float name="FogStart">0</float>
|
||||
<float name="GeographicLatitude">41.7332993</float>
|
||||
<string name="Name">Lighting</string>
|
||||
<Color3 name="ShadowColor">4289967032</Color3>
|
||||
<string name="TimeOfDay">14:00:00</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="ChangeHistoryService" referent="RBX21">
|
||||
<Properties>
|
||||
<string name="Name">ChangeHistoryService</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="TestService" referent="RBX22">
|
||||
<Properties>
|
||||
<bool name="AutoRuns">true</bool>
|
||||
<string name="Description"></string>
|
||||
<bool name="Is30FpsThrottleEnabled">false</bool>
|
||||
<bool name="IsPhysicsEnvironmentalThrottled">false</bool>
|
||||
<bool name="IsSleepAllowed">false</bool>
|
||||
<string name="Name">TestService</string>
|
||||
<double name="Timeout">600</double>
|
||||
</Properties>
|
||||
<Item class="Script" referent="RBX23">
|
||||
<Properties>
|
||||
<bool name="Disabled">false</bool>
|
||||
<Content name="LinkedSource"><null></null></Content>
|
||||
<string name="Name">TestScript</string>
|
||||
<ProtectedString name="Source">local numSecondsToRunFor = 10 -- number of physics seconds to run for (for stress tests, could take much longer in realtime)
|
||||
local numParts = 7000
|
||||
local partSizeMultiplier = 1 -- for big parts, use 10 maybe
|
||||
|
||||
local parts = {}
|
||||
for i = 1, numParts do
|
||||
	local newPart = Instance.new("Part")
|
||||
	newPart.Anchored = true
|
||||
	newPart.CanCollide = false
|
||||
	newPart.formFactor = "Custom"
|
||||
	newPart.Size = newPart.Size * partSizeMultiplier
|
||||
	newPart.CFrame = CFrame.Angles(math.random()*math.pi*2, math.random()*math.pi*2, math.random()*math.pi*2) + 2000 * Vector3.new(math.random()-.5, math.random()+.01, math.random()-.5)
|
||||
|
||||
	local newForce = Instance.new("BodyForce")
|
||||
	newForce.force = Vector3.new(0, newPart:GetMass()*196.2, 0)
|
||||
	--newForce.Parent = newPart
|
||||
|
||||
	-- to ensure not sleeping
|
||||
	--newPart.RotVelocity = 5000 * Vector3.new(math.random()-.5, math.random()-.5, math.random()-.5)
|
||||
|
||||
	newPart.Parent = game.Workspace
|
||||
	table.insert(parts, newPart)
|
||||
end
|
||||
|
||||
start = tick()
|
||||
r = game:service("RunService")
|
||||
t = r.Stepped:wait()
|
||||
local startT = t
|
||||
while (t - startT) < numSecondsToRunFor do
|
||||
	t = r.Stepped:wait()
|
||||
end
|
||||
|
||||
stop = tick() - start
|
||||
|
||||
-- just making it here without getting timed out is the win
|
||||
print(script.Parent.Name .. " passed in " .. stop .. " seconds.")
|
||||
script.Parent:Check(true, "passed in " .. stop .. " seconds.")
|
||||
</ProtectedString>
|
||||
</Properties>
|
||||
</Item>
|
||||
</Item>
|
||||
</roblox>
|
||||
@@ -0,0 +1,291 @@
|
||||
<roblox xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.watrbx.wtf/roblox.xsd" version="4">
|
||||
<External>null</External>
|
||||
<External>nil</External>
|
||||
<Item class="Workspace" referent="RBX0">
|
||||
<Properties>
|
||||
<Ref name="CurrentCamera">RBX1</Ref>
|
||||
<double name="DistributedGameTime">0</double>
|
||||
<CoordinateFrame name="ModelInPrimary">
|
||||
<X>0</X>
|
||||
<Y>0</Y>
|
||||
<Z>0</Z>
|
||||
<R00>1</R00>
|
||||
<R01>0</R01>
|
||||
<R02>0</R02>
|
||||
<R10>0</R10>
|
||||
<R11>1</R11>
|
||||
<R12>0</R12>
|
||||
<R20>0</R20>
|
||||
<R21>0</R21>
|
||||
<R22>1</R22>
|
||||
</CoordinateFrame>
|
||||
<string name="Name">Workspace</string>
|
||||
<Ref name="PrimaryPart">null</Ref>
|
||||
</Properties>
|
||||
<Item class="Camera" referent="RBX1">
|
||||
<Properties>
|
||||
<Ref name="CameraSubject">null</Ref>
|
||||
<token name="CameraType">0</token>
|
||||
<CoordinateFrame name="CoordinateFrame">
|
||||
<X>-7.61764526</X>
|
||||
<Y>4.5688386</Y>
|
||||
<Z>23.4447365</Z>
|
||||
<R00>0.951056659</R00>
|
||||
<R01>0.0563137829</R01>
|
||||
<R02>-0.303842068</R02>
|
||||
<R10>3.72529074e-009</R10>
|
||||
<R11>0.98325485</R11>
|
||||
<R12>0.182235479</R12>
|
||||
<R20>0.309016585</R20>
|
||||
<R21>-0.17331627</R21>
|
||||
<R22>0.935131073</R22>
|
||||
</CoordinateFrame>
|
||||
<float name="FieldOfView">70</float>
|
||||
<CoordinateFrame name="Focus">
|
||||
<X>-1.54080391</X>
|
||||
<Y>0.924129009</Y>
|
||||
<Z>4.74211502</Z>
|
||||
<R00>1</R00>
|
||||
<R01>0</R01>
|
||||
<R02>0</R02>
|
||||
<R10>0</R10>
|
||||
<R11>1</R11>
|
||||
<R12>0</R12>
|
||||
<R20>0</R20>
|
||||
<R21>0</R21>
|
||||
<R22>1</R22>
|
||||
</CoordinateFrame>
|
||||
<string name="Name">Camera</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="Terrain" referent="RBX2">
|
||||
<Properties>
|
||||
<bool name="Anchored">true</bool>
|
||||
<bool name="Archivable">true</bool>
|
||||
<float name="BackParamA">-0.5</float>
|
||||
<float name="BackParamB">0.5</float>
|
||||
<token name="BackSurface">0</token>
|
||||
<token name="BackSurfaceInput">0</token>
|
||||
<float name="BottomParamA">-0.5</float>
|
||||
<float name="BottomParamB">0.5</float>
|
||||
<token name="BottomSurface">4</token>
|
||||
<token name="BottomSurfaceInput">0</token>
|
||||
<int name="BrickColor">194</int>
|
||||
<CoordinateFrame name="CFrame">
|
||||
<X>-2</X>
|
||||
<Y>126</Y>
|
||||
<Z>-2</Z>
|
||||
<R00>1</R00>
|
||||
<R01>0</R01>
|
||||
<R02>0</R02>
|
||||
<R10>0</R10>
|
||||
<R11>1</R11>
|
||||
<R12>0</R12>
|
||||
<R20>0</R20>
|
||||
<R21>0</R21>
|
||||
<R22>1</R22>
|
||||
</CoordinateFrame>
|
||||
<bool name="CanCollide">true</bool>
|
||||
<string name="ClusterGridV2"></string>
|
||||
<float name="Elasticity">0.5</float>
|
||||
<float name="Friction">0.300000012</float>
|
||||
<float name="FrontParamA">-0.5</float>
|
||||
<float name="FrontParamB">0.5</float>
|
||||
<token name="FrontSurface">0</token>
|
||||
<token name="FrontSurfaceInput">0</token>
|
||||
<float name="LeftParamA">-0.5</float>
|
||||
<float name="LeftParamB">0.5</float>
|
||||
<token name="LeftSurface">0</token>
|
||||
<token name="LeftSurfaceInput">0</token>
|
||||
<bool name="Locked">true</bool>
|
||||
<token name="Material">256</token>
|
||||
<string name="Name">Terrain</string>
|
||||
<float name="Reflectance">0</float>
|
||||
<float name="RightParamA">-0.5</float>
|
||||
<float name="RightParamB">0.5</float>
|
||||
<token name="RightSurface">0</token>
|
||||
<token name="RightSurfaceInput">0</token>
|
||||
<Vector3 name="RotVelocity">
|
||||
<X>0</X>
|
||||
<Y>0</Y>
|
||||
<Z>0</Z>
|
||||
</Vector3>
|
||||
<float name="TopParamA">-0.5</float>
|
||||
<float name="TopParamB">0.5</float>
|
||||
<token name="TopSurface">3</token>
|
||||
<token name="TopSurfaceInput">0</token>
|
||||
<float name="Transparency">0</float>
|
||||
<Vector3 name="Velocity">
|
||||
<X>0</X>
|
||||
<Y>0</Y>
|
||||
<Z>0</Z>
|
||||
</Vector3>
|
||||
<Vector3 name="size">
|
||||
<X>2044</X>
|
||||
<Y>252</Y>
|
||||
<Z>2044</Z>
|
||||
</Vector3>
|
||||
</Properties>
|
||||
</Item>
|
||||
</Item>
|
||||
<Item class="StarterPack" referent="RBX3">
|
||||
<Properties>
|
||||
<string name="Name">StarterPack</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="StarterGui" referent="RBX4">
|
||||
<Properties>
|
||||
<string name="Name">StarterGui</string>
|
||||
<bool name="ShowDevelopmentGui">true</bool>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="SoundService" referent="RBX5">
|
||||
<Properties>
|
||||
<token name="AmbientReverb">0</token>
|
||||
<float name="DistanceFactor">10</float>
|
||||
<float name="DopplerScale">1</float>
|
||||
<string name="Name">Soundscape</string>
|
||||
<float name="RolloffScale">1</float>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="CollectionService" referent="RBX6">
|
||||
<Properties>
|
||||
<string name="Name">CollectionService</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="PhysicsService" referent="RBX7">
|
||||
<Properties>
|
||||
<string name="Name">PhysicsService</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="BadgeService" referent="RBX8">
|
||||
<Properties>
|
||||
<string name="Name">BadgeService</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="Geometry" referent="RBX9">
|
||||
<Properties>
|
||||
<string name="Name">Geometry</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="RenderHooksService" referent="RBX10">
|
||||
<Properties>
|
||||
<string name="Name">RenderHooksService</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="SocialService" referent="RBX11">
|
||||
<Properties>
|
||||
<string name="Name">SocialService</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="Debris" referent="RBX12">
|
||||
<Properties>
|
||||
<int name="MaxItems">1000</int>
|
||||
<string name="Name">Debris</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="TimerService" referent="RBX13">
|
||||
<Properties>
|
||||
<string name="Name">Instance</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="ScriptInformationProvider" referent="RBX14">
|
||||
<Properties>
|
||||
<string name="Name">Instance</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="CookiesService" referent="RBX15">
|
||||
<Properties>
|
||||
<string name="Name">CookiesService</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="TeleportService" referent="RBX16">
|
||||
<Properties>
|
||||
<string name="Name">Teleport Service</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="Players" referent="RBX17">
|
||||
<Properties>
|
||||
<bool name="CharacterAutoLoads">true</bool>
|
||||
<string name="Name">Players</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="Selection" referent="RBX18">
|
||||
<Properties>
|
||||
<string name="Name">Selection</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="Lighting" referent="RBX19">
|
||||
<Properties>
|
||||
<Color3 name="Ambient">4286611584</Color3>
|
||||
<float name="Brightness">1</float>
|
||||
<Color3 name="ColorShift_Bottom">4278190080</Color3>
|
||||
<Color3 name="ColorShift_Top">4278190080</Color3>
|
||||
<Color3 name="FogColor">4290822336</Color3>
|
||||
<float name="FogEnd">100000</float>
|
||||
<float name="FogStart">0</float>
|
||||
<float name="GeographicLatitude">41.7332993</float>
|
||||
<string name="Name">Lighting</string>
|
||||
<Color3 name="ShadowColor">4289967032</Color3>
|
||||
<string name="TimeOfDay">14:00:00</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="ChangeHistoryService" referent="RBX20">
|
||||
<Properties>
|
||||
<string name="Name">ChangeHistoryService</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="TestService" referent="RBX21">
|
||||
<Properties>
|
||||
<bool name="AutoRuns">true</bool>
|
||||
<string name="Description"></string>
|
||||
<bool name="Is30FpsThrottleEnabled">false</bool>
|
||||
<bool name="IsPhysicsEnvironmentalThrottled">false</bool>
|
||||
<bool name="IsSleepAllowed">true</bool>
|
||||
<string name="Name">TestService</string>
|
||||
<double name="Timeout">600</double>
|
||||
</Properties>
|
||||
<Item class="Script" referent="RBX22">
|
||||
<Properties>
|
||||
<bool name="Disabled">false</bool>
|
||||
<Content name="LinkedSource"><null></null></Content>
|
||||
<string name="Name">TestScript</string>
|
||||
<ProtectedString name="Source">local numSecondsToRunFor = 5 -- number of physics seconds to run for (for stress tests, could take much longer in realtime)
|
||||
local numParts = 5000
|
||||
local partSizeMultiplier = 10 -- for big parts, use 10 maybe
|
||||
|
||||
local parts = {}
|
||||
for i = 1, numParts do
|
||||
	local newPart = Instance.new("Part")
|
||||
	newPart.Anchored = true
|
||||
	newPart.formFactor = "Custom"
|
||||
	newPart.Size = newPart.Size * partSizeMultiplier
|
||||
	newPart.CFrame = CFrame.Angles(math.random()*math.pi*2, math.random()*math.pi*2, math.random()*math.pi*2) + 2000 * Vector3.new(math.random()-.5, math.random()+.01, math.random()-.5)
|
||||
	newPart.Parent = game.Workspace
|
||||
	table.insert(parts, newPart)
|
||||
end
|
||||
|
||||
start = tick()
|
||||
r = game:service("RunService")
|
||||
t = r.Stepped:wait()
|
||||
local startT = t
|
||||
|
||||
while (t - startT) < numSecondsToRunFor do
|
||||
	-- set CFrames randomly all the time
|
||||
	for i = 1, #parts do
|
||||
		parts[i].CFrame = CFrame.Angles(math.random()*math.pi*2, math.random()*math.pi*2, math.random()*math.pi*2) + 2000 * Vector3.new(math.random()-.5, math.random()+.01, math.random()-.5)
|
||||
	end
|
||||
|
||||
	t = r.Stepped:wait()
|
||||
end
|
||||
|
||||
stop = tick() - start
|
||||
|
||||
-- just making it here without getting timed out is the win
|
||||
print(script.Parent.Name .. " passed in " .. stop .. " seconds.")
|
||||
script.Parent:Check(true, "passed in " .. stop .. " seconds.")
|
||||
</ProtectedString>
|
||||
</Properties>
|
||||
</Item>
|
||||
</Item>
|
||||
</roblox>
|
||||
@@ -0,0 +1,290 @@
|
||||
<roblox xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.watrbx.wtf/roblox.xsd" version="4">
|
||||
<External>null</External>
|
||||
<External>nil</External>
|
||||
<Item class="Workspace" referent="RBX0">
|
||||
<Properties>
|
||||
<Ref name="CurrentCamera">RBX1</Ref>
|
||||
<double name="DistributedGameTime">0</double>
|
||||
<CoordinateFrame name="ModelInPrimary">
|
||||
<X>0</X>
|
||||
<Y>0</Y>
|
||||
<Z>0</Z>
|
||||
<R00>1</R00>
|
||||
<R01>0</R01>
|
||||
<R02>0</R02>
|
||||
<R10>0</R10>
|
||||
<R11>1</R11>
|
||||
<R12>0</R12>
|
||||
<R20>0</R20>
|
||||
<R21>0</R21>
|
||||
<R22>1</R22>
|
||||
</CoordinateFrame>
|
||||
<string name="Name">Workspace</string>
|
||||
<Ref name="PrimaryPart">null</Ref>
|
||||
</Properties>
|
||||
<Item class="Camera" referent="RBX1">
|
||||
<Properties>
|
||||
<Ref name="CameraSubject">null</Ref>
|
||||
<token name="CameraType">0</token>
|
||||
<CoordinateFrame name="CoordinateFrame">
|
||||
<X>-8.83301353</X>
|
||||
<Y>5.29778051</Y>
|
||||
<Z>27.1852608</Z>
|
||||
<R00>0.951056659</R00>
|
||||
<R01>0.0563137829</R01>
|
||||
<R02>-0.303842068</R02>
|
||||
<R10>3.72529074e-009</R10>
|
||||
<R11>0.98325485</R11>
|
||||
<R12>0.182235479</R12>
|
||||
<R20>0.309016585</R20>
|
||||
<R21>-0.17331627</R21>
|
||||
<R22>0.935131073</R22>
|
||||
</CoordinateFrame>
|
||||
<float name="FieldOfView">70</float>
|
||||
<CoordinateFrame name="Focus">
|
||||
<X>-2.75617218</X>
|
||||
<Y>1.65307093</Y>
|
||||
<Z>8.48263931</Z>
|
||||
<R00>1</R00>
|
||||
<R01>0</R01>
|
||||
<R02>0</R02>
|
||||
<R10>0</R10>
|
||||
<R11>1</R11>
|
||||
<R12>0</R12>
|
||||
<R20>0</R20>
|
||||
<R21>0</R21>
|
||||
<R22>1</R22>
|
||||
</CoordinateFrame>
|
||||
<string name="Name">Camera</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="Terrain" referent="RBX2">
|
||||
<Properties>
|
||||
<bool name="Anchored">true</bool>
|
||||
<bool name="Archivable">true</bool>
|
||||
<float name="BackParamA">-0.5</float>
|
||||
<float name="BackParamB">0.5</float>
|
||||
<token name="BackSurface">0</token>
|
||||
<token name="BackSurfaceInput">0</token>
|
||||
<float name="BottomParamA">-0.5</float>
|
||||
<float name="BottomParamB">0.5</float>
|
||||
<token name="BottomSurface">4</token>
|
||||
<token name="BottomSurfaceInput">0</token>
|
||||
<int name="BrickColor">194</int>
|
||||
<CoordinateFrame name="CFrame">
|
||||
<X>-2</X>
|
||||
<Y>126</Y>
|
||||
<Z>-2</Z>
|
||||
<R00>1</R00>
|
||||
<R01>0</R01>
|
||||
<R02>0</R02>
|
||||
<R10>0</R10>
|
||||
<R11>1</R11>
|
||||
<R12>0</R12>
|
||||
<R20>0</R20>
|
||||
<R21>0</R21>
|
||||
<R22>1</R22>
|
||||
</CoordinateFrame>
|
||||
<bool name="CanCollide">true</bool>
|
||||
<string name="ClusterGridV2"></string>
|
||||
<float name="Elasticity">0.5</float>
|
||||
<float name="Friction">0.300000012</float>
|
||||
<float name="FrontParamA">-0.5</float>
|
||||
<float name="FrontParamB">0.5</float>
|
||||
<token name="FrontSurface">0</token>
|
||||
<token name="FrontSurfaceInput">0</token>
|
||||
<float name="LeftParamA">-0.5</float>
|
||||
<float name="LeftParamB">0.5</float>
|
||||
<token name="LeftSurface">0</token>
|
||||
<token name="LeftSurfaceInput">0</token>
|
||||
<bool name="Locked">true</bool>
|
||||
<token name="Material">256</token>
|
||||
<string name="Name">Terrain</string>
|
||||
<float name="Reflectance">0</float>
|
||||
<float name="RightParamA">-0.5</float>
|
||||
<float name="RightParamB">0.5</float>
|
||||
<token name="RightSurface">0</token>
|
||||
<token name="RightSurfaceInput">0</token>
|
||||
<Vector3 name="RotVelocity">
|
||||
<X>0</X>
|
||||
<Y>0</Y>
|
||||
<Z>0</Z>
|
||||
</Vector3>
|
||||
<float name="TopParamA">-0.5</float>
|
||||
<float name="TopParamB">0.5</float>
|
||||
<token name="TopSurface">3</token>
|
||||
<token name="TopSurfaceInput">0</token>
|
||||
<float name="Transparency">0</float>
|
||||
<Vector3 name="Velocity">
|
||||
<X>0</X>
|
||||
<Y>0</Y>
|
||||
<Z>0</Z>
|
||||
</Vector3>
|
||||
<Vector3 name="size">
|
||||
<X>2044</X>
|
||||
<Y>252</Y>
|
||||
<Z>2044</Z>
|
||||
</Vector3>
|
||||
</Properties>
|
||||
</Item>
|
||||
</Item>
|
||||
<Item class="StarterPack" referent="RBX3">
|
||||
<Properties>
|
||||
<string name="Name">StarterPack</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="StarterGui" referent="RBX4">
|
||||
<Properties>
|
||||
<string name="Name">StarterGui</string>
|
||||
<bool name="ShowDevelopmentGui">true</bool>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="SoundService" referent="RBX5">
|
||||
<Properties>
|
||||
<token name="AmbientReverb">0</token>
|
||||
<float name="DistanceFactor">10</float>
|
||||
<float name="DopplerScale">1</float>
|
||||
<string name="Name">Soundscape</string>
|
||||
<float name="RolloffScale">1</float>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="CollectionService" referent="RBX6">
|
||||
<Properties>
|
||||
<string name="Name">CollectionService</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="PhysicsService" referent="RBX7">
|
||||
<Properties>
|
||||
<string name="Name">PhysicsService</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="BadgeService" referent="RBX8">
|
||||
<Properties>
|
||||
<string name="Name">BadgeService</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="Geometry" referent="RBX9">
|
||||
<Properties>
|
||||
<string name="Name">Geometry</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="RenderHooksService" referent="RBX10">
|
||||
<Properties>
|
||||
<string name="Name">RenderHooksService</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="SocialService" referent="RBX11">
|
||||
<Properties>
|
||||
<string name="Name">SocialService</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="Debris" referent="RBX12">
|
||||
<Properties>
|
||||
<int name="MaxItems">1000</int>
|
||||
<string name="Name">Debris</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="TimerService" referent="RBX13">
|
||||
<Properties>
|
||||
<string name="Name">Instance</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="ScriptInformationProvider" referent="RBX14">
|
||||
<Properties>
|
||||
<string name="Name">Instance</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="CookiesService" referent="RBX15">
|
||||
<Properties>
|
||||
<string name="Name">CookiesService</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="TeleportService" referent="RBX16">
|
||||
<Properties>
|
||||
<string name="Name">Teleport Service</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="Players" referent="RBX17">
|
||||
<Properties>
|
||||
<bool name="CharacterAutoLoads">true</bool>
|
||||
<string name="Name">Players</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="Selection" referent="RBX18">
|
||||
<Properties>
|
||||
<string name="Name">Selection</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="Lighting" referent="RBX19">
|
||||
<Properties>
|
||||
<Color3 name="Ambient">4286611584</Color3>
|
||||
<float name="Brightness">1</float>
|
||||
<Color3 name="ColorShift_Bottom">4278190080</Color3>
|
||||
<Color3 name="ColorShift_Top">4278190080</Color3>
|
||||
<Color3 name="FogColor">4290822336</Color3>
|
||||
<float name="FogEnd">100000</float>
|
||||
<float name="FogStart">0</float>
|
||||
<float name="GeographicLatitude">41.7332993</float>
|
||||
<string name="Name">Lighting</string>
|
||||
<Color3 name="ShadowColor">4289967032</Color3>
|
||||
<string name="TimeOfDay">14:00:00</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="ChangeHistoryService" referent="RBX20">
|
||||
<Properties>
|
||||
<string name="Name">ChangeHistoryService</string>
|
||||
</Properties>
|
||||
</Item>
|
||||
<Item class="TestService" referent="RBX21">
|
||||
<Properties>
|
||||
<bool name="AutoRuns">true</bool>
|
||||
<string name="Description"></string>
|
||||
<bool name="Is30FpsThrottleEnabled">false</bool>
|
||||
<bool name="IsPhysicsEnvironmentalThrottled">false</bool>
|
||||
<bool name="IsSleepAllowed">true</bool>
|
||||
<string name="Name">TestService</string>
|
||||
<double name="Timeout">600</double>
|
||||
</Properties>
|
||||
<Item class="Script" referent="RBX22">
|
||||
<Properties>
|
||||
<bool name="Disabled">false</bool>
|
||||
<Content name="LinkedSource"><null></null></Content>
|
||||
<string name="Name">TestScript</string>
|
||||
<ProtectedString name="Source">local numSecondsToRunFor = 10 -- number of physics seconds to run for (for stress tests, could take much longer in realtime)
|
||||
local numParts = 10000
|
||||
local partSizeMultiplier = 1 -- for big parts, use 10 maybe
|
||||
|
||||
local parts = {}
|
||||
for i = 1, numParts do
|
||||
	local newPart = Instance.new("Part")
|
||||
	newPart.Anchored = true
|
||||
	newPart.formFactor = "Custom"
|
||||
	newPart.Size = newPart.Size * partSizeMultiplier
|
||||
	newPart.CFrame = CFrame.Angles(math.random()*math.pi*2, math.random()*math.pi*2, math.random()*math.pi*2) + 2000 * Vector3.new(math.random()-.5, math.random()+.01, math.random()-.5)
|
||||
	newPart.Parent = game.Workspace
|
||||
	table.insert(parts, newPart)
|
||||
end
|
||||
|
||||
start = tick()
|
||||
r = game:service("RunService")
|
||||
t = r.Stepped:wait()
|
||||
local startT = t
|
||||
while (t - startT) < numSecondsToRunFor do
|
||||
	-- set CFrames randomly all the time
|
||||
	for i = 1, #parts do
|
||||
		parts[i].CFrame = CFrame.Angles(math.random()*math.pi*2, math.random()*math.pi*2, math.random()*math.pi*2) + 2000 * Vector3.new(math.random()-.5, math.random()+.01, math.random()-.5)
|
||||
	end
|
||||
|
||||
	t = r.Stepped:wait()
|
||||
end
|
||||
|
||||
stop = tick() - start
|
||||
|
||||
-- just making it here without getting timed out is the win
|
||||
print(script.Parent.Name .. " passed in " .. stop .. " seconds.")
|
||||
script.Parent:Check(true, "passed in " .. stop .. " seconds.")
|
||||
</ProtectedString>
|
||||
</Properties>
|
||||
</Item>
|
||||
</Item>
|
||||
</roblox>
|
||||
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user