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

MySQL LAG

Discussion in 'Scripting' started by NerdGuin, Jul 14, 2020.

  1. NerdGuin

    NerdGuin

    Joined:
    Jan 29, 2020
    Posts:
    7
    Hi,

    Code (CSharp):
    1. string result = cmd.ExecuteScalar().ToString();
    2.  
    3. string result = cmd.ExecuteNonQuery().ToString();
    lag my game, helpmeee pls :(
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,971
    Please refer to the other thread, the one you started a few days ago that was full of helpful information.

    You need to do this asynchronously, otherwise 100% of the time it will lag out, if it even succeeds at all.
     
    PraetorBlue likes this.
  3. NerdGuin

    NerdGuin

    Joined:
    Jan 29, 2020
    Posts:
    7
    I've done all of that, nothing worked, and I managed to take a step to solve the problem.