Ask coding questions

← Back to all posts
Pygame Platformer Laggy
Asteroidboy308

I made a platformer and the game seems to lag. I think it is because of the size of the map. I don't want to change that though.

Here is some code that takes a while to run according to a profiler (shortest to longest):

And this:

And this:

Is there any way to make it run faster?

Voters
Asteroidboy308