When i was testing my game, I realized that there is fps drop when player equip tool while they are at firstperson.
Since they stop dropping fps when i disabled the firstperson arm script, I’m assuming that it’s caused by the that script.
As you can see in the video on above, FPS only drops in firstperson and tool with complex model.
Both of tool (Tool named “AK” and just “Tool”) that showed in video has none of script, Only difference is that “AK” tool has the motor6d weld on handle to make sure all part stays in position.
I also tried replacing motor6d with normal weld, But that didn’t fixed the fps drop.
This is the script that firstperson script i’m talking about:
local player = game:GetService("Players").LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local camera = game.Workspace.CurrentCamera
game:GetService("RunService").RenderStepped:Connect(function()
if (camera.Focus.p - camera.CoordinateFrame.p).Magnitude <= 1 then
character["Right Arm"].LocalTransparencyModifier = 0.8
character["Left Arm"].LocalTransparencyModifier = 0.8
end
end)
Fps drop still only happens in firstperson even after deleting “if (camera.Focus.p - camera.CoordinateFrame.p).Magnitude <= 1 then)” line.
local player = game:GetService("Players").LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local camera = game.Workspace.CurrentCamera
game:GetService("RunService").RenderStepped:Connect(function(dt)
game:GetService("RunService").RenderStepped:Wait(dt)
if (camera.Focus.p - camera.CoordinateFrame.p).Magnitude <= 1 then
character["Right Arm"].LocalTransparencyModifier = 0.8
character["Left Arm"].LocalTransparencyModifier = 0.8
end
end)
I am like 99.99% sure that would be considered a bug. I can’t possibly see a reason why a transparency modifier would cause an fps drop at 0.8 compared to 1. Some things make sense like obviously parts being 0.1 transparency will be easier to render than parts with 1 transparency but what you are describing is basically it has so much difficulty rendering the 0.8 transparency that it wants the parts to be fully invisible.