examples/triangle: make rendering rely on time instead of FPS