This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Game Development and the fly likes Is animation typically redrawing or updating the entire window constantly? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Game Development
Bookmark "Is animation typically redrawing or updating the entire window constantly?" Watch "Is animation typically redrawing or updating the entire window constantly?" New topic
Author

Is animation typically redrawing or updating the entire window constantly?

John Quach
Ranch Hand

Joined: Sep 28, 2011
Posts: 50
I thought only a character needs to be updated, not the background or any non-moving objects.

I thought about this after I removed the code that fills up the background in this program. The result was the image being shadowed, or the image the buffer replaced was never erased and left a trail of the image wherever the user dragged the mouse cursor.





Mich Robinson
Ranch Hand

Joined: Jun 28, 2009
Posts: 250
    
    1
typically, yes.


Arcade : Alien Swarm
Board : Chess - Checkers - Connect 4 - Othello
Randall Twede
Ranch Hand

Joined: Oct 21, 2000
Posts: 4340
    
    2

concidering even ordinary GUI components are constantly redrawn i would think so.


SCJP
Visit my download page
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is animation typically redrawing or updating the entire window constantly?