This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Game Development and the fly likes Does rendering outside the canvas still use CPU? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Game Development
Bookmark "Does rendering outside the canvas still use CPU?" Watch "Does rendering outside the canvas still use CPU?" New topic
Author

Does rendering outside the canvas still use CPU?

Stuart Geipel
Greenhorn

Joined: Jun 27, 2009
Posts: 10
I'm doing active rendering for a game, and I was wondering...

If you try to draw something outside the frame, (as in whatever I drew won't be visible) will it sill use just as much CPU?
Stuart Geipel
Greenhorn

Joined: Jun 27, 2009
Posts: 10
Bump. Is the answer to this unknown?
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

I don't know the answer to that. However it seems to me that you could set up a benchmark to find the answer to that. One piece of code would draw in a visible place, the other in a not-visible place, and you would compare the run times. (I don't think you can find elapsed CPU time, but isn't elapsed clock time what you are really interested in?)

It might turn out that the answer is "It doesn't matter" but only you can make that decision for your situation.
Stuart Geipel
Greenhorn

Joined: Jun 27, 2009
Posts: 10
Tried myself: Rendering outside it doesn't use CPU! Yay!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Does rendering outside the canvas still use CPU?
 
Similar Threads
perspective transformation in java2d
hundreds of images on a rendering scene
Question about painting
Waiting Thread Queue or notifyAll()
performance of JSF on server side