Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

HandHeld.Vibrate() performance issue Image effects for mobile

Discussion in 'Android' started by wolfstien786, Aug 12, 2012.

  1. wolfstien786

    wolfstien786

    Joined:
    Apr 12, 2012
    Posts:
    185
    HI !!!
    I've got this really strange problem that whenever I add the "HandHeld.Vibrate()" statement to my camera shake script, the game starts lagging awfully bad in my samsung galaxy S. I am currently working on a game for the android market on my laptop and use my galaxy S for testing purposes.

    Also I wanted to ask whether image effects can be added for android based games and if so then how ??

    Thanks in advance :D
     
  2. Sir-Tiddlesworth

    Sir-Tiddlesworth

    Joined:
    Oct 19, 2011
    Posts:
    908
    You can most certainly use image effects in android based games, though they can only run on devices which are OpenGL ES 2.0 compatible.
     
  3. wolfstien786

    wolfstien786

    Joined:
    Apr 12, 2012
    Posts:
    185
    Could you please tell me as to how to find whether a device is OpenGL ES 2.0 compatible or not ??

    And does handheld.vibrate cause lag ??
     
  4. Sir-Tiddlesworth

    Sir-Tiddlesworth

    Joined:
    Oct 19, 2011
    Posts:
    908
    The easiest way to test whether your phone is OpenGL ES 2.0 compatible is to use Google.
    The Samsung Galaxy S is OpenGL ES 2.0 compatible.

    As for handheld.vibrate, I am not sure. I have never really used it (not in a game at least).
     
  5. wolfstien786

    wolfstien786

    Joined:
    Apr 12, 2012
    Posts:
    185
    Thanks Sir.Tiddlesworth. That was very helpful indeed :)

    Could someone please tell me about the handheld.vibrate() ?? Please !!!!
     
  6. wolfstien786

    wolfstien786

    Joined:
    Apr 12, 2012
    Posts:
    185
  7. wolfstien786

    wolfstien786

    Joined:
    Apr 12, 2012
    Posts:
    185
  8. wolfstien786

    wolfstien786

    Joined:
    Apr 12, 2012
    Posts:
    185
  9. StudioHen

    StudioHen

    Joined:
    Oct 3, 2012
    Posts:
    1
    No, it does not cause lag.


     
  10. wolfstien786

    wolfstien786

    Joined:
    Apr 12, 2012
    Posts:
    185
    But Whenever I use it, my game starts lagging
     
  11. prabhukaran

    prabhukaran

    Joined:
    May 5, 2019
    Posts:
    13
    I am also facing the same issue in Oneplus Nord device. Low end device vibrates without any issue.