Smooth FPS changes for both drm and X11. Do not use float as frame time
for GLSL background as the precision goes down quite quickly during
runtime. Instead calculate 0..1 cycle time (0 begin - 1 finished) from
pre-specified amount of frames needed for shader.