x


Custom mouse cursor is laggy on low/mid hardware

Hello,

I am making a simple game. However using a custom mouse cursor makes the cursor really laggy on low/mid computers, but it runs smooth in fullscreen on top hardware. I have read others have the same issues, and there seems to be no other solutions to it.

My question is then is there no way to solve this? Is unity aware of it?

I use for example, and all possible variations, but same results.

function OnGUI(){
    GUI.DrawTexture (Rect(Input.mousePosition.x-cursorSizeX/2 + cursorSizeX/2, (Screen.height-Input.mousePosition.y)-cursorSizeY/2 + cursorSizeY/2, cursorSizeX, cursorSizeY),myCursor);
}
more ▼

asked Jan 23 '12 at 10:42 AM

KaiserJohan gravatar image

KaiserJohan
61 22 25 26

Until Unity3D supports hardware cursors, custom drawn cursors will suffer from poor framerates. Make sure to vote for this feature request: http://feedback.unity3d.com/forums/15792-unity/suggestions/262990-runtime-hardware-cursor-support

Jan 23 '12 at 11:52 AM -chris
(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3747
x985
x956
x261

asked: Jan 23 '12 at 10:42 AM

Seen: 766 times

Last Updated: Jan 23 '12 at 11:52 AM