hi,

I am using java to create a program which simulates moving vehicles.  The
platform is a dual CPU PC (800Mhz  & 512MB ram) with Windows2000 OS.

Basically, the APPLICATION consists of 2 panels, one (a JLayeredPane) is
used for the painting of the icons representing the vehicles which are
updated every second via calls to JComponent.setLocation() for each of the
icons.  The other panel  ('control panel')  consist of JTextFields and
JButtons with which i interact with the application - such as zooming, etc.

The PROBLEM i am facing is that as more vehicles are added to the
JLayeredPane, the 'control panel' reaction time slows down.  Above a
certain load, the response for a click on a button can slow to 3 or 4
seconds.  As an example, when i click on a JComboBox, the list will be
displayed only after 4 secs.  The interesting thing is that at all times,
the CPU load (via windows Task Manager) only indicates about 50% load on
both processors, memory usage is also way below 512MB .  Also the icons
still seem to be repainted regularly at 1 second intervals.   I dont
understand what is causing the delay in the updates on the 'control panel'.

Any clues / help in this is greatly appreciated.

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to