🚀 3 easy tricks to get better performance with Pygame - Python Gamedev

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

You can use pygame.SCALED as argument when setting up the display, this is way better that blitting to a surface and upscaling it manually.
I also redid the tests on the web, blitting each sprite 1000 times and the framerate went from something like 16 fps with convert_alpha() to 32 fps with set_colorkey()
(I'm testing on a steam deck)

FinFET
Автор

Great stuff bro, keep the good work !

johnpauluzumaki
Автор

Can you go into more detail about prerendering?

MrDowntemp
Автор

Can python handle an online game like RuneScape ? Or would that be a bad idea?

Oathbetrayer