pygame-web / pygbag

python and pygame wasm for everyone ( packager + test server + simulator )
https://github.com/pygame-web
MIT License
319 stars 36 forks source link

Pygame running speed of website(pygbag) is much slower than Local-EXE #134

Closed songyuyx closed 10 months ago

songyuyx commented 10 months ago

I made a simple games by pygame, and it is running good in Local-Exe files.

after use Pygbag to build it to a web-games, the running speed is running very very slow in localhost:8000, and also in itch.io.

May I have any comments to fix the issue, thank you very much

pmp-p commented 10 months ago

usually the first thing to check is your display size : 1024x600 is ok enough including mobile.

incremental display also saves a lot of processing ( ie pygame.display.update() instead of flip() )

next to check is game logic, especially assets/surface handling.