The framerate deteriorates over time only in multiple_window_render.
Run the multiple_window_render, minimise the windows, leave it for a few hours, maximise them again, and check if the framerate is stuck lower rate than it was when the program was initially started.