Hi, i've been developing a simple 2d platformer in c++, using SFML, and have some general questions
Do I draw everything or just the things on screen? Drawing everything is easier as it requires less work for me, but it seems that it is a badpractice as it utilizes more resources than what it is actually needed. ( I have a "tiles" list and I go throught it with an iterator + for loop)
Also, Do I check collision with solid tiles? Same as above. It's easier but consumes more resources.
What I mean is this: does checking if something will be on screen or not(so I draw it or not), or if something is near my character or not (collision) waste far less resources than just doing it for everything?
If you want me to clarify some things tell me, and I'll do my best.