Timing issue with Framebuffer