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. Dismiss Notice

Question game runs at different rates between build and editor

Discussion in 'Editor & General Support' started by Bannanaking3, May 16, 2023.

  1. Bannanaking3

    Bannanaking3

    Joined:
    Jun 21, 2022
    Posts:
    109
    The title pretty much tells. it. I'm not very experienced with the more technical side of unity so I'm not sure at all how to phrase most of this but here goes.

    When playing my game in the editor, I can get sensitivity values and whatnot dialed in how I like so my (fps) Character moves and turns at a manageable but snappy rate. for some reason when I build and run the game (for most recent Mac o.s.) these things work at a different rate(the character turns slower, that's really the main issue).
    is this a known problem? is it the input system, a specific quirk of building for Mac? why does it do this? I remember this happened once when I built for web G.L. (which I hadn't ever even touched for someone else's game that I was just playing, and I haven't touched it since) and that even affected the frame rate pretty negatively.

    What's going on?
     
  2. spiney199

    spiney199

    Joined:
    Feb 11, 2021
    Posts:
    5,769
    It sounds like your movement/camera code isn't frame-rate independant, when these things should generally be independant of such.
     
  3. Bannanaking3

    Bannanaking3

    Joined:
    Jun 21, 2022
    Posts:
    109
    Thanks, I'll take a look at that.
     
  4. Bannanaking3

    Bannanaking3

    Joined:
    Jun 21, 2022
    Posts:
    109
    That was the exact issue. Really need to start making that a habit. thanks.
     
    spiney199 likes this.