1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Resolved Path#step(boolean) takes very long

Discussion in 'Developer Support' started by Savior, Apr 12, 2016.

  1. Savior

    Savior Java Warlord

    Joined:
    Nov 17, 2014
    Messages:
    4,906
    Likes Received:
    2,748
    Unlike path generation, which turns out to be pretty fast as of now, stepping a path takes up to 7 seconds.

    Of those 7 seconds, 6 or so are spent doing nothing, then the mouse moves to the minimap and clicks the coordinate as normal.

     
    qverkk likes this.
  2. Best Answer:
    Post #25 by Cloud, Apr 16, 2016
  3. Arbiter

    Arbiter Mod Automation

    Joined:
    Jul 26, 2013
    Messages:
    2,938
    Likes Received:
    1,266
    Do us a favor. Back up your current biostatistics in a separate location and then delete them. Restart client and see if it improves. If it does, post your biostatistics here. If it does not, let us know that that did not fix it.
     
  4. Savior

    Savior Java Warlord

    Joined:
    Nov 17, 2014
    Messages:
    4,906
    Likes Received:
    2,748
    I already removed them, still no improvements. If you need i could still give you my current ones.
     
  5. red

    red

    Joined:
    Nov 17, 2013
    Messages:
    259
    Likes Received:
    111
    I have this same problem, it also gets horribly laggy after a certain amount of time
     
  6. qverkk

    Joined:
    Sep 22, 2015
    Messages:
    1,603
    Likes Received:
    381
    Same. Yesterday I've said this to Arbi that it's getting laggy, even i've sent a vid ;d
     
  7. Cloud

    Cloud Engineer

    Joined:
    Jul 28, 2013
    Messages:
    2,777
    Likes Received:
    1,124
    Bug acknowledged, which types of paths are you having the worst experiences with?
     
  8. red

    red

    Joined:
    Nov 17, 2013
    Messages:
    259
    Likes Received:
    111
    Honestly they are all the same, couldn't even get predefined path to work.
     
  9. Savior

    Savior Java Warlord

    Joined:
    Nov 17, 2014
    Messages:
    4,906
    Likes Received:
    2,748
    I was using RegionPath when it took that long.
     
  10. Cloud

    Cloud Engineer

    Joined:
    Jul 28, 2013
    Messages:
    2,777
    Likes Received:
    1,124
    Is this a problem on both osrs and rs3? If so, which is it occurring worse on?
     
  11. Savior

    Savior Java Warlord

    Joined:
    Nov 17, 2014
    Messages:
    4,906
    Likes Received:
    2,748
    I only tested on RS3. @qverkk however reported me that OSRS is slow aswell, but still a bit faster than RS3.
     
  12. Cloud

    Cloud Engineer

    Joined:
    Jul 28, 2013
    Messages:
    2,777
    Likes Received:
    1,124
    What I'd really like are some benchmarks for PredefinedPath, BresenhamPath, RegionPath, and WebPath in regards to the amount of time the getNext method takes. I'd like stats for both osrs and rs3 (and going further, legacy interface and modern interface). Can you guys coordinate and come up with some benchmarks for me please? I'm tweaking things now but if you guys can provide me with that information it'll help me out quite a bit.
     
  13. Arbiter

    Arbiter Mod Automation

    Joined:
    Jul 26, 2013
    Messages:
    2,938
    Likes Received:
    1,266
  14. Savior

    Savior Java Warlord

    Joined:
    Nov 17, 2014
    Messages:
    4,906
    Likes Received:
    2,748
    @Cloud only getNext() ?
     
  15. Arbiter

    Arbiter Mod Automation

    Joined:
    Jul 26, 2013
    Messages:
    2,938
    Likes Received:
    1,266
    Yessir.
     
  16. red

    red

    Joined:
    Nov 17, 2013
    Messages:
    259
    Likes Received:
    111
    Working on it right now
     
  17. Savior

    Savior Java Warlord

    Joined:
    Nov 17, 2014
    Messages:
    4,906
    Likes Received:
    2,748
    Code (Text):
    1. WebPath: 10639ms
    2. RegionPath: 13839ms
    3. BresenhamPath: 8196ms
    4. PredefinedPath: 585ms
    5.  
    6. WebPath: 9611ms
    7. RegionPath: 14097ms
    8. BresenhamPath: 8244ms
    9. PredefinedPath: 537ms
    10.  
    11. WebPath: 9350ms
    12. RegionPath: 13419ms
    13. BresenhamPath: 8012ms
    14. PredefinedPath: 564ms

    Code (Text):
    1. WebPath: 32ms
    2. RegionPath: 65ms
    3. BresenhamPath: 56ms
    4. PredefinedPath: 3ms
    5.  
    6. WebPath: 19ms
    7. RegionPath: 44ms
    8. BresenhamPath: 27ms
    9. PredefinedPath: 3ms
    10.  
    11. WebPath: 27ms
    12. RegionPath: 42ms
    13. BresenhamPath: 27ms
    14. PredefinedPath: 3ms

    @Cloud @Arbiter
     
  18. Cloud

    Cloud Engineer

    Joined:
    Jul 28, 2013
    Messages:
    2,777
    Likes Received:
    1,124
    Thanks for the data but I also need to know the amount of vertices in each path to be helpful :p
     
  19. Savior

    Savior Java Warlord

    Joined:
    Nov 17, 2014
    Messages:
    4,906
    Likes Received:
    2,748
    alright :p I assume only rs3 data will do? Since OSRS seems to be fine.

    Edit:
    Did 3 tests from near, medium, and far distance.

    Code (Text):
    1. WebPath: 7981ms
    2. (16 vertices)
    3.  
    4. RegionPath: 6774ms
    5. (23 vertices)
    6.  
    7. BresenhamPath: 3742ms
    8. (13 vertices)
    9.  
    10. PredefinedPath: 551ms
    11. (2 vertices)
    12.  
    13.  
    14.  
    15.  
    16. WebPath: 11499ms
    17. (33 vertices)
    18.  
    19. RegionPath: 17798ms
    20. (64 vertices)
    21.  
    22. BresenhamPath: 9134ms
    23. (33 vertices)
    24.  
    25. PredefinedPath: 1087ms
    26. (4 vertices)
    27.  
    28.  
    29.  
    30.  
    31. WebPath: 8252ms
    32. (35 vertices)
    33.  
    34. RegionPath: 10245ms
    35. (69 vertices)
    36.  
    37. BresenhamPath: 9162ms
    38. (51 vertices)
    39.  
    40. PredefinedPath: 623ms
    41. (4 vertices)

    @Cloud
     
    #18 Savior, Apr 12, 2016
    Last edited: Apr 12, 2016
    Arbiter likes this.
  20. Cloud

    Cloud Engineer

    Joined:
    Jul 28, 2013
    Messages:
    2,777
    Likes Received:
    1,124
    Thanks for the debug information guys, I've just released an update which should accelerate things considerably on both osrs and rs3. I'd be interested in seeing benchmarks for the new release.
     
  21. Savior

    Savior Java Warlord

    Joined:
    Nov 17, 2014
    Messages:
    4,906
    Likes Received:
    2,748
    Code (Text):
    1. WebPath: 9512ms
    2. (25 vertices)
    3.  
    4. RegionPath: 11634ms
    5. (53 vertices)
    6.  
    7. BresenhamPath: 6426ms
    8. (29 vertices)
    9.  
    10. PredefinedPath: 495ms
    11. (2 vertices)
    12.  
    13.  
    14. WebPath: 8409ms
    15. (25 vertices)
    16.  
    17. RegionPath: 11968ms
    18. (53 vertices)
    19.  
    20. BresenhamPath: 6502ms
    21. (29 vertices)
    22.  
    23. PredefinedPath: 484ms
    24. (2 vertices)
    25.  

    @Cloud It's the version you just released, restarted everything. No idea why it did not even go down a slightest bit.
    --- Double Post Merged, Apr 12, 2016, Original Post Date: Apr 12, 2016 ---
    Code (Text):
    1. Coordinate(3104, 3230, 0)
    2. Coordinate(3102, 3232, 0)
    3. Coordinate(3102, 3232, 0)
    4. Coordinate(3102, 3232, 0)
    5. Coordinate(3102, 3232, 0)
    6. Coordinate(3102, 3232, 0)
    7. Coordinate(3102, 3232, 0)
    8. Coordinate(3102, 3232, 0)
    9. Coordinate(3102, 3232, 0)
    10. Coordinate(3102, 3232, 0)
    11. Coordinate(3102, 3232, 0)
    12. Coordinate(3102, 3232, 0)
    13. Coordinate(3104, 3230, 0)
    14. Coordinate(3104, 3230, 0)
    15. Coordinate(3104, 3230, 0)
    16. Coordinate(3104, 3230, 0)
    17. Coordinate(3104, 3230, 0)
    18. Coordinate(3104, 3230, 0)
    19. Coordinate(3104, 3230, 0)
    20. Coordinate(3104, 3230, 0)
    21. Coordinate(3104, 3230, 0)
    22. Coordinate(3104, 3230, 0)
    23. Coordinate(3104, 3230, 0)
    24. Coordinate(3104, 3230, 0)
    25. Coordinate(3104, 3230, 0)
    26. BresenhamPath average: 5319ms

    Code (Text):
    1. com.runemate.game.api.hybrid.location.navigation.web.vertex_types.CoordinateVertex(3109, 3232, 0)
    2. com.runemate.game.api.hybrid.location.navigation.web.vertex_types.CoordinateVertex(3109, 3232, 0)
    3. com.runemate.game.api.hybrid.location.navigation.web.vertex_types.CoordinateVertex(3109, 3232, 0)
    4. com.runemate.game.api.hybrid.location.navigation.web.vertex_types.CoordinateVertex(3109, 3232, 0)
    5. com.runemate.game.api.hybrid.location.navigation.web.vertex_types.CoordinateVertex(3109, 3232, 0)
    6. com.runemate.game.api.hybrid.location.navigation.web.vertex_types.CoordinateVertex(3109, 3232, 0)
    7. com.runemate.game.api.hybrid.location.navigation.web.vertex_types.CoordinateVertex(3109, 3232, 0)
    8. com.runemate.game.api.hybrid.location.navigation.web.vertex_types.CoordinateVertex(3109, 3232, 0)
    9. com.runemate.game.api.hybrid.location.navigation.web.vertex_types.CoordinateVertex(3109, 3232, 0)
    10. com.runemate.game.api.hybrid.location.navigation.web.vertex_types.CoordinateVertex(3109, 3232, 0)
    11. com.runemate.game.api.hybrid.location.navigation.web.vertex_types.CoordinateVertex(3109, 3232, 0)
    12. com.runemate.game.api.hybrid.location.navigation.web.vertex_types.CoordinateVertex(3109, 3232, 0)
    13. com.runemate.game.api.hybrid.location.navigation.web.vertex_types.CoordinateVertex(3109, 3232, 0)
    14. com.runemate.game.api.hybrid.location.navigation.web.vertex_types.CoordinateVertex(3109, 3232, 0)
    15. com.runemate.game.api.hybrid.location.navigation.web.vertex_types.CoordinateVertex(3109, 3232, 0)
    16. com.runemate.game.api.hybrid.location.navigation.web.vertex_types.CoordinateVertex(3109, 3232, 0)
    17. com.runemate.game.api.hybrid.location.navigation.web.vertex_types.CoordinateVertex(3109, 3232, 0)
    18. com.runemate.game.api.hybrid.location.navigation.web.vertex_types.CoordinateVertex(3109, 3232, 0)
    19. com.runemate.game.api.hybrid.location.navigation.web.vertex_types.CoordinateVertex(3109, 3232, 0)
    20. com.runemate.game.api.hybrid.location.navigation.web.vertex_types.CoordinateVertex(3109, 3232, 0)
    21. com.runemate.game.api.hybrid.location.navigation.web.vertex_types.CoordinateVertex(3109, 3232, 0)
    22. com.runemate.game.api.hybrid.location.navigation.web.vertex_types.CoordinateVertex(3109, 3232, 0)
    23. com.runemate.game.api.hybrid.location.navigation.web.vertex_types.CoordinateVertex(3109, 3232, 0)
    24. com.runemate.game.api.hybrid.location.navigation.web.vertex_types.CoordinateVertex(3109, 3232, 0)
    25. com.runemate.game.api.hybrid.location.navigation.web.vertex_types.CoordinateVertex(3109, 3232, 0)
    26. WebPath average: 5985ms

    Code (Text):
    1. Coordinate(3106, 3232, 0)
    2. Coordinate(3106, 3232, 0)
    3. Coordinate(3106, 3232, 0)
    4. Coordinate(3106, 3232, 0)
    5. Coordinate(3106, 3232, 0)
    6. Coordinate(3106, 3232, 0)
    7. Coordinate(3106, 3232, 0)
    8. Coordinate(3106, 3232, 0)
    9. Coordinate(3106, 3232, 0)
    10. Coordinate(3106, 3232, 0)
    11. Coordinate(3106, 3232, 0)
    12. Coordinate(3106, 3232, 0)
    13. Coordinate(3106, 3232, 0)
    14. Coordinate(3106, 3232, 0)
    15. Coordinate(3106, 3232, 0)
    16. Coordinate(3106, 3232, 0)
    17. Coordinate(3106, 3232, 0)
    18. Coordinate(3106, 3232, 0)
    19. Coordinate(3106, 3232, 0)
    20. Coordinate(3106, 3232, 0)
    21. Coordinate(3106, 3232, 0)
    22. Coordinate(3106, 3232, 0)
    23. Coordinate(3106, 3232, 0)
    24. Coordinate(3106, 3232, 0)
    25. Coordinate(3106, 3232, 0)
    26. RegionPath average: 8850ms

    @Cloud
     

Share This Page

Loading...