- Home /
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);
}
Until Unity3D supports hardware cursors, custom drawn cursors will suffer from poor framerates. $$anonymous$$ake sure to vote for this feature request: http://feedback.unity3d.com/forums/15792-unity/suggestions/262990-runtime-hardware-cursor-support
Your answer
Follow this Question
Related Questions
OnMouseDown is checked when build for Android 2 Answers
Get GameObject That Was Last Clicked? 2 Answers
Switch Between Touch And Mouse Controls 0 Answers
Multiple Constant Force Inputs at once? 1 Answer
Raycast based on a Rect? 1 Answer