This week's book giveaway is in the HTML Pages with CSS and JavaScript forum.
We're giving away four copies of Testing JavaScript Applications and have Lucas da Costa on-line!
See this thread for details.
Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

jerky animations

 
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 ???
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic