Original Post
(This question can be more general, but since I'm using DirectX, I wanted a DirectX specific answer (if it makes a difference)) In my side-scrolling 2D game, I make sure that my object is on screen with a simple if(...) before sending it to the render method. My question is : is it right way to do it? When calling d3dspt->Draw(...) with coordinates that are offscreen, will DirectX try to render it offscreen with no results or will it ignore the command since it cannot render at that coordinate? Sure, my game right now is so 'light' that either ways wouldn't change anything, but I want to know the right way before moving on to bigger problems.