Jan-19-2021, 05:02 PM
Using Vector2 math is low level math. Vector2 will cost less when moving any sprite.
Render text is costly. That why I render once every 100 ms. blit any image is fast. That why you save text to a surface. Loaded image must be converted to be fast.
Using set on a class objects won't work. All class object have separate id.
I can get pygame to move about 1000 sprites without any frame rate loss.
Render text is costly. That why I render once every 100 ms. blit any image is fast. That why you save text to a surface. Loaded image must be converted to be fast.
Using set on a class objects won't work. All class object have separate id.
I can get pygame to move about 1000 sprites without any frame rate loss.