This issue happens with changing a UDim2 on RenderStep. This is necessary because the game uses a custom animated cursor. The code causing this issue is below.
--ClientModule
runService:BindToRenderStep("MouseMove", 1, function()
clientcore.input.Mouse.Move()
end)
--InputModule
local cursor = _G.gui.Cursor
local players = game:GetService("Players")
local player = players.LocalPlayer
local plrmouse = player:GetMouse()
Mouse.Move = function()
cursor.Position = UDim2.new(0, plrmouse.X, 0, plrmouse.Y)
--irrelevant code removed
end
This code causes massive FPS drops (from 120-200 down to 80) and this has been happening for months. Any solution would be greatly appreciated.