0

Pygame Extreme lag. ( Code example and online compiler included )

Copy and paste the code into compiler Code: https://code.sololearn.com/c8yWkf6iIH7d Online compiler: https://trinket.io/library/trinkets/create?lang=pygame I tried to make a snake game but my fps is reduced from 60 to 2 in 5 seconds only by drawing background. I cant understand the what is the source of lag

21st May 2022, 11:03 AM
Artur
Artur - avatar
1 Respuesta
+ 3
Python is more of a model creator. It main use is Machine Learning and not for creating games. I'd suggest you learn a programming language used for software creation like C++, Java or something like that 🙏. Python is also kinda slow in compiling.
21st May 2022, 11:18 AM
Abdul Muhaimin Salay
Abdul Muhaimin Salay - avatar