xNul / drop

A LÖVE visualizer and music player
MIT License
20 stars 2 forks source link

Implement FFTs using FFI #12

Closed xNul closed 6 years ago

xNul commented 7 years ago

FFT generation accounts for the majority of the visualizer's CPU usage. Drop currently uses a FFT library made in Lua, but if we use LuaJIT's FFI functionality, we may be able to use an FFT library made in C, greatly reducing CPU usage.

To implement this mechanic properly, I want to study FFTs further and then create a library specifically for handling this FFT-FFI integration.

xNul commented 6 years ago

As of https://github.com/nabakin/drop/commit/8b99298a8e0f24aa4d848d91a74ee67cff61a55a this feature has been implemented.