Jul-12-2022, 11:20 PM
Hello,
Is it faster for pygame to draw a huge image if it is chopped up into smaller tiles?
Currently they are just circles, but I would like to have star and planet images in my space game be large.. very large. Pygame hates large images, would it draw things faster if they are cut into a bunch of smaller images?
I'm sure I can get an image to draw out onto a grid of smaller surfaces, but is it worthy time, or is there another method for very big images? Similarly, would drawing enormous circles showing planet orbits or will I later have to figure out how to calculate the visible sections only (or does pygame do that itself)?
Many thanks.
Is it faster for pygame to draw a huge image if it is chopped up into smaller tiles?
Currently they are just circles, but I would like to have star and planet images in my space game be large.. very large. Pygame hates large images, would it draw things faster if they are cut into a bunch of smaller images?
I'm sure I can get an image to draw out onto a grid of smaller surfaces, but is it worthy time, or is there another method for very big images? Similarly, would drawing enormous circles showing planet orbits or will I later have to figure out how to calculate the visible sections only (or does pygame do that itself)?
Many thanks.