V
V
Voprosium2021-12-24 09:56:09
pygame
Voprosium, 2021-12-24 09:56:09

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 question

Ask a Question

731 491 924 answers to any question