My program have two cursors!

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

JJChicken
Just popping in
Just popping in
Posts: 9
Joined: Mon May 31, 2010 07:14

My program have two cursors!

Postby JJChicken » Wed Jul 21, 2010 11:17

how to disable windows cursor?
when my game framerate slow down, CEGUI cursor moved slow down too.
how to solve this problem?

Jamarr
CEGUI MVP
CEGUI MVP
Posts: 812
Joined: Tue Jun 03, 2008 23:59
Location: USA

Re: My program have two cursors!

Postby Jamarr » Wed Jul 21, 2010 14:22

JJChicken wrote:how to disable windows cursor?


This is a windows API question. This is not a windows API forum.

when my game framerate slow down, CEGUI cursor moved slow down too. how to solve this problem?


The CEGUI mouse can only update as fast as your application tells it to; eg it is limited by how often your application calls CEGUI::System::injectMouseMove/injectMousePosition.
If somebody helps you by replying to your thread, upvote him/her as a thanks! Make sure to include your CEGUI.log and everything you tried when posting! And remember that we are not magicians!

JJChicken
Just popping in
Just popping in
Posts: 9
Joined: Mon May 31, 2010 07:14

Re: My program have two cursors!

Postby JJChicken » Thu Jul 22, 2010 08:54

I know about it
My application called the CEGUI::System::injectMouseMove/injectMousePosition, but the cursor did
not rendered immediately!
because My application rendered the CEGUI per frame, but the framerate slowly. so cursor moved slowly too.
how to solve this problem?
did i use single thread rendered the cursor or CEGUI?

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

Re: My program have two cursors!

Postby CrazyEddie » Thu Jul 22, 2010 13:28

The CEGUI cursor is rendered as part of the CEGUI output. If you have low frame rates or are otherwise not calling the GUI rendering code frequently enough, then you will see slow cursor updates. The "solution" would be to render more frequently.

CE.

JJChicken
Just popping in
Just popping in
Posts: 9
Joined: Mon May 31, 2010 07:14

Re: My program have two cursors!

Postby JJChicken » Fri Jul 23, 2010 05:20

thank you!


Return to “Help”

Who is online

Users browsing this forum: No registered users and 15 guests