Jerky mouse on Vista

F

FutureScalper

Windows Vista system. I run a standalone Swing application which I
wrote myself, currently under Java 1.6.0_05 Server VM. When I start
the application, and then drag the mouse smoothly across the main
screen, the mouse "jerks".

If I minimize and then restore it, the mouse never again jerks.

If I start another copy of my Swing app, again the mouse jerks. If I
minimize and restore, again, the mouse never jerks again.

The application is heavily multi-threaded and is doing disk I/O
frequently. I get the impression the mouse jerks are sort of
synchronized with the disk I/O. But once minimized and restored just
one time only, the mouse never jerks again.

What could be causing this, I wonder?
 
J

John B. Matthews

FutureScalper said:
Windows Vista system. I run a standalone Swing application which I
wrote myself, currently under Java 1.6.0_05 Server VM. When I start
the application, and then drag the mouse smoothly across the main
screen, the mouse "jerks".

You could try a client VM, or see if your code is monopolizing the
even-dispatching thread.
If I minimize and then restore it, the mouse never again jerks.

If I start another copy of my Swing app, again the mouse jerks. If I
minimize and restore, again, the mouse never jerks again.

Possibly, the window manipulations kill whatever thread is making the
mouse track erratically. You might look for exceptions that have been
caught but not recorded.
The application is heavily multi-threaded and is doing disk I/O
frequently. I get the impression the mouse jerks are sort of
synchronized with the disk I/O. But once minimized and restored just
one time only, the mouse never jerks again.

What could be causing this, I wonder?

A program that "is heavily multi-threaded and is doing disk I/O
frequently" is a good candidate.
 
F

FutureScalper

None of my threads die by virtue of minimizing and maximizing.

But the jerky mouse stops and becomes smooth. It's a puzzler.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top