title: Object instancing is too slow in Unity
body: <p>I'm making a painting program and started following <a href="https://youtu.be/L51x0bRyoQQ" rel="nofollow noreferrer">a tutorial</a> on YT. When I finished with the tutorials I reazlized that the instantiating was happening to slow and when I draged the brush really fast it would live gaps between the dots. </p>
  
  <p>I have already tried lowering the script execution time in the project settings without any success.</p>
  
  <pre><code>public Transform baseDot;
  public KeyCode mouseLeft;
  public Vector2 mousePosition;
  Vector2 mousePos;
  Vector2 objPos;
  
  void OnMouseOver()
  {
      mousePos = new Vector2(Input.mousePosition.x, Input.mousePosition.y);
      objPos = Camera.main.ScreenToWorldPoint(mousePos);
  
      baseDot.position = mousePos;
  
      if (Input.GetKey(mouseLeft) )
          Instantiate(baseDot, objPos, baseDot.rotation);
  }
  </code></pre>
  
  <p>Image of the problem:</p>
  
  <p><a href="https://i.stack.imgur.com/xDQ0Z.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xDQ0Z.png" alt="enter image description here"></a></p>
  
  <p>I expect there to be no gaps and have a straight line resembling paint strokes</p>