Maybe this is a stupid question. but shouldn't all window/fullscreen games be rendered with indirect rendering? Couldn't we just extract the fps from compiz itself? As far as I remember, it has a buildin fps counter.

I don't know though, if it shows the fps of the actual game or the desktop behind the game.