Let us plot graphs for debugging

As a Roblox developer, it is currently too hard to constantly look at values printing in the output to look for discrepancies, and I think a good solution to that would be to let us plot graphs so that we can see what happened 10 frames ago without having to look at jittery decimals in the output.

Maybe something like this:

local runService = game:GetService('RunService')
local players = game:GetService('Players')
local player = players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humRootPart = character:WaitForChild('HumanoidRootPart')
function renderStepped()
   plot( elapsedTime(), humRootPart.Position.Y ) --takes in an x and a y
end
runService.RenderStepped:Connect(renderStepped)

I think this can be useful in many ways, but if you have any ideas don’t hesitate to post them here.

14 Likes

Somebody should make a plugin for this :thinking:

6 Likes