While drawing a map for a game in Pygame, I encountered a strange problem. Loading my grass sprite, which is a little over a kilobyte, and placing it, the FPS dropped by half. However, replacing the image with one downloaded from a website that's almost 10 times larger, the FPS returned to normal. Why is my sprite causing such a significant load on the system?
This is my sprite: small grass texture
...and this is the one I downloaded: large grass texture
Post your answer
(should be on the screen below the question) to share your solution rather than answering in the comments. Similarly, edits to your question can be made by clickingEdit
link under your question. Comments aren't a good place for answers or edits because their not covered by the site's search / discoverability tools and also more subject to removal. \$\endgroup\$convert()
function useful for reference. \$\endgroup\$