I am developing simple 2D environment in Pygame (Python 3.6), however I think this question is general. The environment is moving (player is rendered on the same position and everything else is scrolling).
I have two ideas how to display the environment:
I can draw it with built-in functions - circles, rectangles, polygons (pretty much like simple HTML5 canvas).
I can load images (textures) and build the environment from them.
What option is easier for CPU? - Does it depend on resolutions of textures? Does it depend on how many elements I would draw instead of image? Is there some general guideline what approach is better for what situation? Should I combine both approaches?
Should I care? The game will also contain a lot of other real-time computations - for example path-finding for various objects etc. So, should I even care about optimization of that simple 2D graphics?