Answer the question
In order to leave comments, you need to log in
Why does a class slow down pygame?
Hello! There were problems in the application on pygame.
I created the Point class to make it easier to pass arguments to a function and to easily access points.
But when using the class, the fps drops.
I decided to use namedtuple, but it didn't help me either.
I tend to use classes.
Can you please explain why this is happening.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question