why the cegui mouse cursor move delay

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

finezwx
Just popping in
Just popping in
Posts: 13
Joined: Fri May 23, 2008 02:20

why the cegui mouse cursor move delay

Postby finezwx » Thu Feb 05, 2009 02:08

This is my program to make the CEGUI mouse cursor move.

POINT ms;
GetCursorPos(&ms);
CEGUI::Point mousePos = CEGUI::MouseCursor::getSingleto().getPosition();
CEGUI::System::getSingleton().injectMousePosition(ms.x,ms.y);

It works well when there is not 3D Scene or 3D object. But if There is 3D scene. If I move the mouse quickly, the CEGUI mouse cursor is always delay.the position of the CEGUI mouse cursor and the position of the windows mouse cursor is different. and CEGUI mouse cursor is follow the windows mouse cursor.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Postby CrazyEddie » Thu Feb 05, 2009 09:44

Hi,

Does the CEGUI cursor catch up with the OS cursor eventually, or is it then permanently offset?

Do you get the same behaviour in both debug and optimised release build configurations?

To be honest, it sounds like a general performance issue; what kind of FPS are you experiencing? If it is a general performance issue, and you're affected when running an optimised build, I'm not sure what to suggest (unless you want to not use the CEGUI cursor, and use the OS cursor instead; since that would work, though you'd need to apply some offsets in windowed mode, if you have such a thing).

CE.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 20 guests