run script every rendered frame

Is there a way to run some python script every rendered frame?
I tried “Always” sensor with “use_pulse_true_level” but it triggers every logic tick which is usualy faster than every rendered frame so not every result of script’s work goes to display

Briefly: how can i sync my script to OpenGL page flipping?

This shouldn’t be a problem, the logic runs in sequence with the render steps. However the display is wiped before the rendering step. You can use a call back on the scene (post draw or pre draw) to circumvent this.

Sent from my Nexus 7 using Tapatalk