This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread 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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Game Development
Reply 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: 185
typically, yes.


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

Joined: Oct 21, 2000
Posts: 4092
    
    1
concidering even ordinary GUI components are constantly redrawn i would think so.


SCJP
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Is animation typically redrawing or updating the entire window constantly?
 
Similar Threads
Swing: Slow paint
Animation
the display of my applet in html got problem~
I'm fazed by a nullpointererror I can't get rid of
How to add in button and paint in applet?