0
\$\begingroup\$

I am building a very basic 2D game purely using pygame library in Python 3x. The "game object" is blit(ed) onto the screen using a loop and after each pass, there are calculations taking place in the background for example, to test for collision. Now as the game get's more complex with more features, the calculations take longer and hence the "game object" is put onto the screen once, but disappears for a split second when the calculations are taking place and appears again during the second pass, meaning it flickers. How can I tackle this problem? I cannot move ahead with more complex calculations for other features without avoiding the flickering due to more time required for the calculations.

\$\endgroup\$
1
  • \$\begingroup\$ @Philipp yo thank you very much it does talk about my problem :) \$\endgroup\$ Nov 5 '20 at 14:27

Browse other questions tagged or ask your own question.