Closed Bug 614914 Opened 14 years ago Closed 8 years ago

Slow response to mouse-moved events in Java game

Categories

(Plugins Graveyard :: Java (Apple), defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: moz.teodosia, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0b8pre) Gecko/20101125 Firefox/4.0b8pre
Build Identifier: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0b8pre) Gecko/20101125 Firefox/4.0b8pre

When opening a page with Java content, the response to the user commands has delays and the animations within the Java content are not smooth. 

Reproducible: Always

Steps to Reproduce:
1.Load any page with Java content.
2.Open a Java game(http://games.yahoo.com/) and start playing.

Actual Results:  
There is a latency in response to commands.

Expected Results:  
The response time should be without any latency.

I used Java plugin version 13.3.0.
Version: unspecified → Trunk
Assignee: nobody → smichaud
Component: General → Java (Java Embedding Plugin)
Product: Firefox → Plugins
QA Contact: general → jep-java
Version: Trunk → unspecified
Which game(s)?

And by the way, the JEP isn't bundled with FF4pre -- it's Apple's port of Sun/Oracle's Java Plugin2 that provides support for Java applets in Minefield/FF4pre.
Assignee: smichaud → nobody
Component: Java (Java Embedding Plugin) → Java (Apple)
QA Contact: jep-java → apple-java
> There is a latency in response to commands.

Which commands?  Mouse commands?  Keyboard commands?
(In reply to comment #2)
> > There is a latency in response to commands.
> 
> Which commands?  Mouse commands?  Keyboard commands?

http://games.yahoo.com/game/pop-and-drop is one of the games I tried. There wwas latency commands on mouse commands.
Using your example game (http://games.yahoo.com/game/pop-and-drop), I
only see lags with mouse-moved events (not with mouse-click events).

This seems to be a bug in Apple's port of Sun/Oracle's Java Plugin2 --
not in Firefox.

Here's how I reproduced the problem (in Minefield/FF4, Chrome, and
Opera 10.63, running on OS X 10.5.8):

1) Visit http://games.yahoo.com/game/pop-and-drop and wait for the
   game to finish loading.

   (To get the game to display properly, you may need to reload the
   page, or even to close the page and visit the URL in another page.)

2) Click on the Play button and wait for the game to finish setting
   up.

3) Move the mouse over the game board (without clicking it).

   Notice that an image of a ball with a broken circle around it
   follows the mouse as you move it, but that the ball's movement is
   very laggy.

With the default Java settings you don't see this problem in Safari
(because in this case Safari uses Apple's old JavaPluginCocoa.bundle).
But change your Java settings to make Safari use Java Plugin2, and you
will see similar problems in Safari (though quite a bit worse than in
other browsers).

Here's how to make Safari use Java Plugin2:

1) Run Applications : Utilities : Java Preferences

2) Choose "Run applets" "In their own process".
Summary: Latency in response to commands on Java content sites → Slow response to mouse-moved events in Java game
Also note that this problem doesn't happen in FF 3.6.X or 3.5.X, which bundle the Java Embedding Plugin (JEP).
Closing old bugs in the Plugins component. We aren't going to track issues in 3rd-party plugins in the Mozilla bug tracker. In addition, support for NPAPI plugins will be removed at the end of this year; for more details see the post at https://blog.mozilla.org/futurereleases/2015/10/08/npapi-plugins-in-firefox/

If there is a serious bug in Firefox, it needs to be filed in the "Core" product, "Plug-Ins" component.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → INCOMPLETE
Product: Plugins → Plugins Graveyard
You need to log in before you can comment on or make changes to this bug.