Page 1 of 1

why the cegui mouse cursor move delay

Posted: Thu Feb 05, 2009 02:08
by finezwx
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.

Posted: Thu Feb 05, 2009 09:44
by CrazyEddie
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.