T
T
The_XXI2019-08-24 17:51:59
Python
The_XXI, 2019-08-24 17:51:59

Low frame rate in pygame on macbook, how to fix?

There is this code:

import pygame
from moviepy.editor import *

pygame.init()
screen = pygame.display.set_mode((1000, 625))

clip = VideoFileClip('video.mp4') 
clip.preview()
    
exit()

When running on a MacBook, the frame rate is very low, I tried to put more frames using clip.preview(fps=)
It did not help, I ran the same code on windows and the rate was normal. What's the matter? How to change frequency on Mac?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question