Results 1 to 8 of 8

Thread: requests per frame/second limitation

  1. #1

    Question requests per frame/second limitation

    Is there any limitation on how many requests you can make per frame/second, or is the information always computed each frame and you just access it whenever you call a function?

    I ask this because LoL released an API a while back and every function you called was a request to the server, so they limited it, and I was wondering if this was the same

  2. #2
    I think the engine complains in the console if an entity Think() takes longer than ~50ms, but that's it.

  3. #3
    Valve Developer
    Join Date
    Sep 2011
    Posts
    1,704
    Bot scripts are run server-side, so there's no round-trip cost.

    We're planning on adding some performance info to the wiki so you'll know what functions are more expensive than others.

  4. #4
    Basic Member
    Join Date
    Sep 2012
    Posts
    16
    What happens if say, Think() goes into an infinite loop? Won't the server get overloaded if Think() is being called every frame?

  5. #5
    Valve Developer
    Join Date
    Sep 2011
    Posts
    1,704
    Think() going into an infinite loop will just hang the server.

  6. #6
    another thing, where can we see the full documentation regarding what calls we can make to the api? in the wiki we have a lot of stuff, but for example, the GetUnitPotentialValue function is referenced in section 6 but it doesn't show up on the functions list.

    is it just a case of the wiki being incomplete as of now or where can we find out the full docs?

    (i'd create a new thread, but im not allowed because i already created a new one today)

  7. #7
    Valve Developer
    Join Date
    Sep 2011
    Posts
    1,704
    Yep fleshing out the wiki is definitely on the list.

  8. #8
    so everything will be there. gotcha! thx

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •