Implement vsync on Android