Debugging waves with onPaint()

Jump to navigation Jump to search

Well keep in mind that the difference between onPaint and getGraphics are twofold.

First if I recall, the painting done by getGraphics is synced better with your current activity. Also you don't have to store any of your painting data for later to paint (which if I recall is part of the sync issue).

Which makes getGraphics much more useful for debugging then onPaint in my humble opinion. Where as onPaint is better for fancy graphics for everyone else after it is released.

Chase-san23:55, 17 May 2012

You do not have permission to edit this page, for the following reasons:

  • The action you have requested is limited to users in the group: Users.
  • You must confirm your email address before editing pages. Please set and validate your email address through your user preferences.

You can view and copy the source of this page.

Return to Thread:Talk:Robocode/Graphical Debugging/Debugging waves with onPaint()/reply (9).

Of course, for private/temporary debugging, entangling draws and sysouts in the middle of other events is fine.

MN14:35, 18 May 2012
 

This is what I kind of what I figured the painting was for in the first place. :)

Chase-san03:23, 19 May 2012