Refactor plugin, cleanup and c++20 fixes
Went to update for c++20, made some changes worthy of testing, and found
out most of the plugin didn't really work well.
Seemed simple enough to fix. 200 frames wasn't long enough to wait for my
pc, so changed the behavior to use actual time instead, and fixed a couple
other bugs.