Summary: | GLWindow.warpPointer() causes slowdowns under Windows | ||
---|---|---|---|
Product: | [JogAmp] Newt | Reporter: | Julien Gouesse <gouessej> |
Component: | core | Assignee: | Sven Gothel <sgothel> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | gouessej |
Priority: | --- | ||
Version: | 1 | ||
Hardware: | pc_all | ||
OS: | windows | ||
Type: | DEFECT | SCM Refs: |
jogl 8ff185ef62c832408963f30a2b4875955d7ae650
jogl a446bfbb25397cf5876e766d0bb52cbaaa5f8e2f
|
Workaround: | --- |
Description
Julien Gouesse
2013-05-11 18:19:42 CEST
The frame rate decreases a bit but the main problem comes from the responsiveness of the mouse. NEWT doesn't seem to be responsible for this bug as it works very well with Jake 2, I modified it and tested it with the very latest aggregated build. However, warpPointer() seems to have a different behavior under Windows and Linux. The generated events are not exactly the same under Linux and Windows when moving the mouse manually and with warpPointer(). I'm not sure it was already the case with AWT. I'm still investigating. You warp the pointer at every frame, this ofc may bring down rendering, due to system/WM message overload etc .. Have a look at the GearsES2 demo: <http://jogamp.org/git/?p=jogl.git;a=blob;f=src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/GearsES2.java;hb=HEAD#l519> It only warps back to the middle when a mouse event actually has been received and if that feature is enabled. Refined your unit test, demonstrating warp-random at display and warp-center at mouseExit. (In reply to comment #3) > You warp the pointer at every frame, this ofc may bring down rendering, > due to system/WM message overload etc .. > > Have a look at the GearsES2 demo: > > <http://jogamp.org/git/?p=jogl.git;a=blob;f=src/test/com/jogamp/opengl/test/ > junit/jogl/demos/es2/GearsES2.java;hb=HEAD#l519> > > It only warps back to the middle when a mouse event actually has been > received > and if that feature is enabled. Actually, warping the mouse pointer to the middle when a mouse event has been received is still slow on one of my laptops but the root cause has nothing to do with JOGL 2 and NEWT. When removing and reinstalling some Windows updates, some features become completely broken, it is no more possible to open the file explorer even though the environment variables are correctly set, there are spurious slowdowns in applications. I don't reproduce this bug on other machines under Windows. |