Render 2D textures, good practice

Hi, i’m pretty new in game dev industry, i chose monogame because i like c# and i have couple years experience in this language. For start i have one question about performance.

It’s good practice to always drawing all textures on screen? What if i have half screen that is changing dynamically and half with static textures, i still should rendering all or maybe only that what are changing?

Thanks for answers,
Babinicz

Some older games would do this optimization where it would only render the dynamic parts of the scene. It would not only gain you some performance, but on mobile it would save battery life.

Still most games render the full screen every frame. This is mostly because most games can’t predict what parts of the screen will need to be updated.

So either way works.

Unless you plan to target really slow hardware or do something extremely expensive, I would suggest just rendering the full screen.

1 Like