projectM-visualizer / projectm

projectM - Cross-platform Music Visualization Library. Open-source and Milkdrop-compatible.
https://discord.gg/mMrxAqaa3W
GNU Lesser General Public License v2.1
3.22k stars 364 forks source link

Control debug frame saving via API #657

Closed kblaschke closed 1 year ago

kblaschke commented 1 year ago

Fixed a bug with an uninitialized member, removed the "d" hotkey and added an API function which can be used to write debug images if required. The filename and path can't be controlled, the file is written to the current working directory with a fixed filename containing a timestamp.

For proper render debugging I suggest using RenderDoc anyway, as this reveals all GL draw calls and state changes.

Fixes issue #656

kblaschke commented 1 year ago

was the 'd' hotkey documented anywhere?

No, I don't think so. It's also nothing I'd really tie to a key, as it's a developer tool. IMO even dumping the image isn't really necessary as one can simply use RenderDoc and see everything projectM does - every single draw call and state change - while rendering a frame. That's way more helpful than a simple image.