Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jerky animations

 
Lukas Schellenberg
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Several of my applet contain animations. Since I moved to Mac Os X, these animations are
- quite jerky when displayed with Safari (1.3!),
- still jerky from time to time (every second) with Explorer 5.2 (X)
- almost normal with Explorer 5.01 (classic)
Is this a fatality ?

I use a thread (with an infinite loop and a 40 ms sleep) to periodically call the repaint() method of a panel. The new image is computed in the paint() method of the panel.

May be the following observations could help someone to point out a fix�:
- The animation is jerky only if a big part of the applet is visible on the screen
- The repaint methods are not called in every loop of the thread but are skipped (not even entered) more and more as I manually grow the visible part of the applet !!??
- I use the double-buffer procedure in the paint methods of the panels, but no image is loaded to construct the buffered image.

Thanks in advance for some clues, L. Schellenberg

P.S.: and why does only the Explorer 5.2 X browser draw anti-aliased ovals ???
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic