this is all in lua, and its garbage collection would cause a bunch of lag spikes. im planning on making a rhythm game with this, and lag spike are a no go
but i seemingly ran out of opportunities to optimize my code. so I opted to manage the garbage collection myself using garbagecollect()
! it runs it every frame, but stops it if it'll cause any frames to drop.
it doesn't take memory usage into account. so theoretically, the playdate could run out of memory!! but laggy always vs crash sometimes...