{"id":17011144,"url":"https://github.com/1bardesign/garbage_geiger","last_synced_at":"2026-04-29T04:39:36.202Z","repository":{"id":137711195,"uuid":"275567746","full_name":"1bardesign/garbage_geiger","owner":"1bardesign","description":"An audio memory debugging tool for love2d","archived":false,"fork":false,"pushed_at":"2020-06-29T03:24:06.000Z","size":6,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-21T04:09:04.194Z","etag":null,"topics":["audio","debugging","love2d","lua","lua-library","memory","memory-management"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/1bardesign.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-28T11:11:29.000Z","updated_at":"2021-02-08T02:34:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"51765455-fd0e-4726-bc82-a961ebd5bed6","html_url":"https://github.com/1bardesign/garbage_geiger","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/1bardesign/garbage_geiger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1bardesign%2Fgarbage_geiger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1bardesign%2Fgarbage_geiger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1bardesign%2Fgarbage_geiger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1bardesign%2Fgarbage_geiger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/1bardesign","download_url":"https://codeload.github.com/1bardesign/garbage_geiger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1bardesign%2Fgarbage_geiger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32411539,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T03:46:11.172Z","status":"ssl_error","status_checked_at":"2026-04-29T03:37:55.317Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["audio","debugging","love2d","lua","lua-library","memory","memory-management"],"created_at":"2024-10-14T06:06:20.926Z","updated_at":"2026-04-29T04:39:36.187Z","avatar_url":"https://github.com/1bardesign.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ☢️ `garbage_geiger`\n\n\u003e A dosimeter for garbage exposure in LÖVE\n\n`garbage_geiger` emits a [geiger(-muller) counter](https://en.wikipedia.org/wiki/Geiger_counter) like noise when there is a lot of memory being allocated or garbage being collected. That's all!\n\nThis can give a good indication of potential \"gc problem\" events in your game. If you get a huge chatter after an attack, you may be allocating too much. If you get a roar right around when your game freezes for a frame or three, its a hint that garbage generation might be an issue.\n\nIt is designed for use with [LÖVE](https://love2d.org) 11.x and is intended to be easy to drop into existing projects.\n\nInspired by [malloc_geiger](https://github.com/laserallan/malloc_geiger).\n\n# Features\n\n- One source, on-demand sound generation\n- No garbage generated by the module while it's operating, other than garbage generated internally by love\n- Internal RNG state to avoid polluting love.math.random\n- Configurable for sensitivity in garbage-heavy or garbage-light environments\n\n# Installation\n\n- Copy [garbage_geiger.lua](./garbage_geiger.lua) and [license.txt](./license.txt) somewhere convenient\n\t- Wherever you put dependencies in your project\n- `require` it in your code and construct a new instance\n\t- Optionally configure the instance\n\t- The defaults are fine for starters\n- Update it each time around your update loop\n\t- Don't forget to pass `dt`\n- Optionally provide some way to deactivate it, for when you next say \"hrm, maybe this is a garbage issue...\"\n\t- Maybe only have it active when some key is held, or via your console\n\n# Example Usage\n\n```lua\n--set up our object\nlocal geiger = require(\"garbage_geiger\"):new()\n\nfunction love.update(dt)\n\t--audio is generated and played\n\t--(can be done anywhere else with access to the time since last frame)\n\tgeiger:update(dt)\n\n\t-- ... (rest of your game logic)\nend\n\n```\n\n# Demo\n\nThe provided [main.lua](./main.lua) is a simple demo which allows listening the effect for different garbage generation workloads.\n\n# Limitations\n\n- Generates sound buffers at 30hz (configurable in the source), so there's _at least_ that much latency between something happening and it being audible (plus OS mixing, your sound card, any hardware between your machine and the speakers, etc)\n- Will not generate sound if there has been garbage generated _and_ cleaned between updates; lua does not expose any way to check this, and even if it did the implication is pretty expensive.\n- Does add some CPU load, though generally much less than a millisecond of work per generation.\n- The clicks aren't super high fidelity - but they are audible and feel geiger-y!\n\n# Pull Requests\n\nContributions will be merged \"fairly optimistically\"; if it adds something meaningful I'm happy to pull it in.\n\n# License\n\nMIT, see [`license.txt`](./license.txt)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1bardesign%2Fgarbage_geiger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F1bardesign%2Fgarbage_geiger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1bardesign%2Fgarbage_geiger/lists"}