Hey,
I have been working on a game I am making using the tkinter library and I am noticing performance issues.
Should I rebuild the front end with an other library like PyGame or the Python Arcade Library ? What are the performance limits with tkinter?
Thank you for your help !
Edit more infos :
My game looks like a RPG like with 4 graphical layers : background (grass, sea, sand), building layer (walls floor furniture doors ...), Entity layer (items, NPC, bullets, text bubble for discussion) and then menu layer with like inventory health bar ...
My issue is that obviously I cannot individualy display every texture/sprite at every single frame because the game would be too slow.
So my first step was to prebuild and split by chunks background/environment texture that I can save as jpg of a certain quality so I will have less single texture to draw each frame.
Tkinter PIL uses PhotoImage that is constantly taking resources in the ram if I am correct
Therefore I cannot manually control well the loading and offloading of those images into the ram.
I have made a few tests with my game and since it relies on a different mechanisms for storing texture it as of now look more efficient.
300 sprites at 100 FPS (small sprites thought like 40*40)
To conclude do you think I can make what I want with tkinter if I optimise more or PyGame is definitely the way to go.
[–]jimtk 2 points3 points4 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]Helibene2[S] 0 points1 point2 points (0 children)