All Projects → Mechazawa → Love-Debug-Graph

Mechazawa / Love-Debug-Graph

Licence: Unlicense license
An fps/memory/misc graph utillity for Löve2D

Programming Languages

lua
6591 projects

Projects that are alternatives of or similar to Love-Debug-Graph

nadbg
👀Dynamic memory watcher/tracer/analyzer for CTF pwn
Stars: ✭ 51 (+75.86%)
Mutual labels:  debugger
shaderview
A GLSL shader development tool for the LÖVE game framework.
Stars: ✭ 22 (-24.14%)
Mutual labels:  love2d
gdb
Go GDB/MI interface
Stars: ✭ 70 (+141.38%)
Mutual labels:  debugger
vil
Vulkan Layer for Live Introspection & Debugging. Allows to view all vulkan state live inside your application.
Stars: ✭ 39 (+34.48%)
Mutual labels:  debugger
stylish-log
🎉 Stylish-log "A beautiful way to see your web console logs"
Stars: ✭ 12 (-58.62%)
Mutual labels:  debugger
vscDebugger
(Partial) Implementation of the Debug Adapter Protocol for R
Stars: ✭ 58 (+100%)
Mutual labels:  debugger
vim-easydebugger
A VIM multi-language debugger plugin
Stars: ✭ 47 (+62.07%)
Mutual labels:  debugger
react-native-debug-console
A network and console debug component and modal for react native purely in JavaScript
Stars: ✭ 17 (-41.38%)
Mutual labels:  debugger
catui
A very light-weight GUI library for the Löve2D
Stars: ✭ 84 (+189.66%)
Mutual labels:  love2d
iqm-exm
IQM & EXM model format specs, Blender exporter, and LÖVE loader.
Stars: ✭ 35 (+20.69%)
Mutual labels:  love2d
apollo
microcontroller-based FPGA / JTAG programmer
Stars: ✭ 32 (+10.34%)
Mutual labels:  debugger
console
a debugger for async rust!
Stars: ✭ 2,101 (+7144.83%)
Mutual labels:  debugger
lovelive
💕 Live coding framework for LÖVE(2D Game Engine)
Stars: ✭ 27 (-6.9%)
Mutual labels:  love2d
sOS
Solar Operating System - The ASCII OS nobody asked for.
Stars: ✭ 11 (-62.07%)
Mutual labels:  love2d
Devel-Camelcadedb
Perl module for debugging with Perl5 plugin for IntelliJ
Stars: ✭ 23 (-20.69%)
Mutual labels:  debugger
synthein
A space ship building and combat game
Stars: ✭ 16 (-44.83%)
Mutual labels:  love2d
cc-tool
Mirror of cc-tool from SourceForge
Stars: ✭ 144 (+396.55%)
Mutual labels:  debugger
ps2rd
Collection of tools to remotely debug PS2 games
Stars: ✭ 55 (+89.66%)
Mutual labels:  debugger
love-atom
Smart autocompletion for the LÖVE framework in Atom.
Stars: ✭ 34 (+17.24%)
Mutual labels:  love2d
vscode-android-webview-debug
Debug your JavaScript code running in WebViews on any Android device from VS Code.
Stars: ✭ 18 (-37.93%)
Mutual labels:  debugger

Löve Debug Graph

A Löve2D graph tool for drawing FPS, memory or custom graphs.

Usage

debugGraph = require 'debugGraph'

-- https://love2d.org/wiki/General_math
-- Returns 'n' rounded to the nearest 'deci'th (defaulting whole numbers).
function math.round(n, deci)
  deci = 10^(deci or 0)
  return math.floor(n*deci+.5)/deci
end

function love.load()
  fpsGraph = debugGraph:new('fps', 0, 0)
  memGraph = debugGraph:new('mem', 0, 30)
  dtGraph = debugGraph:new('custom', 0, 60)
end

function love.update(dt)

  -- Update the graphs
  fpsGraph:update(dt)
  memGraph:update(dt)

  -- Update our custom graph
  dtGraph:update(dt, math.floor(dt * 1000))
  dtGraph.label = 'DT: ' ..  math.round(dt, 4)
end

function love.draw()
  -- Draw graphs
  fpsGraph:draw()
  memGraph:draw()
  dtGraph:draw()
end

function love.keypressed(key)
  if key == 'escape' then
    love.event.quit()
  end
end

Configuration

Key Default Description
x 0 The X position of the graph
y 0 The Y position of the graph
width 50 The graph width
height 30 The graph height
delay 0.5 The update delay in seconds
label #graph type# The graph label
font Vera Sans 8px The label font
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].