I'm doing active rendering for a game, and I was wondering,,,

Does drawing outside a canvas still use just as much CPU?

As in, If I draw one rectangle, and then draw another outside the canvas, does it ignore the other rectangle, or waste CPU on it?

I want to know if I have to test where each object is to know whether I'm going to render it or not.

Tried it myself. Rendering outside the canvas doesn't waste CPU! That makes my project so much easier!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.