Author Topic: Rogue tournament  (Read 19695 times)

Holsety

  • Rogueliker
  • ***
  • Posts: 148
  • Karma: +0/-0
    • View Profile
Re: Rogue tournament
« Reply #15 on: July 07, 2012, 07:39:45 AM »
  Shit man there's more than a second between press and move. [...]

I can confirm this for Rogue v5 over the webplayer.
Quote from: AgingMinotaur
… and it won't stop until we get to the first, unknown ignorance. And after that – well, who knows?

elwin

  • Rogueliker
  • ***
  • Posts: 96
  • Karma: +0/-0
    • View Profile
    • Roguelike Gallery
Re: Rogue tournament
« Reply #16 on: July 07, 2012, 04:24:38 PM »
A whole second?  Something's definitely wrong.

Try running "ping rlgallery.org" from the command line.  If you get more than 200 milliseconds, it's probably the network.

Your browser might make a difference too.  Chromium feels a little faster than Firefox, I'm not sure about IE yet.  Is redrawing the whole screen, like when you check your inventory, significantly slower than just making a single move?

I'm also planning to rewrite some of the server, which should speed response times up, but not by more than 50 milliseconds.
Roguelike Gallery: play Rogue online.  SSH or in browser.

Snargleplax

  • Rogueliker
  • ***
  • Posts: 50
  • Karma: +0/-0
  • snargleplax
    • View Profile
    • SnargleQuest dev log
Re: Rogue tournament
« Reply #17 on: July 09, 2012, 01:08:33 AM »
Web player Rogue v5 is very slow for me as well (not quite a second, but painful), and my ping is 112ms.

konijn_

  • Newcomer
  • Posts: 29
  • Karma: +0/-0
    • View Profile
    • Email
Re: Rogue tournament
« Reply #18 on: July 09, 2012, 01:55:02 AM »
A whole second?  Something's definitely wrong.

Try running "ping rlgallery.org" from the command line.  If you get more than 200 milliseconds, it's probably the network.
<snip>

Ping time is 35 milliseconds, running Chrome, speed is terrible.

T.

elwin

  • Rogueliker
  • ***
  • Posts: 96
  • Karma: +0/-0
    • View Profile
    • Roguelike Gallery
Re: Rogue tournament
« Reply #19 on: July 12, 2012, 05:38:24 PM »
I've done some updates, which may improve things a little.

I've figured out what the real problem is: when your keypress reaches the server, it responds before Rogue is done processing.  The output from Rogue isn't sent until your next request.  I think I'm going to give up on doing polling cleverly and just switch to WebSockets.

Sorry the tournament turned out badly, maybe I should have waited another month or two.
Roguelike Gallery: play Rogue online.  SSH or in browser.

konijn_

  • Newcomer
  • Posts: 29
  • Karma: +0/-0
    • View Profile
    • Email
Re: Rogue tournament
« Reply #20 on: July 12, 2012, 08:16:15 PM »
I've done some updates, which may improve things a little.

I've figured out what the real problem is: when your keypress reaches the server, it responds before Rogue is done processing.  The output from Rogue isn't sent until your next request.  I think I'm going to give up on doing polling cleverly and just switch to WebSockets.

Sorry the tournament turned out badly, maybe I should have waited another month or two.

Nothing to worry about! I liked the idea and I definitely willing to give this another try the next time.

T.

guest509

  • Guest
Re: Rogue tournament
« Reply #21 on: July 13, 2012, 09:32:43 AM »
  Well shit brother I just figured this was a trial run.

  Makes sense that I could press the move key a bunch of times and have it activate all at once. Glad you figured out the error.

  Run this in August. I'll do it. Rogue is is in my top 5 Roguelikes. That sounds silly, but it's true.

elwin

  • Rogueliker
  • ***
  • Posts: 96
  • Karma: +0/-0
    • View Profile
    • Roguelike Gallery
Re: Rogue tournament
« Reply #22 on: August 01, 2012, 05:39:21 PM »
I think I've got it working now, at least for browsers that support WebSockets.  There are a few more features and fixes to add, so I'm thinking of redoing the tournament in September.
Roguelike Gallery: play Rogue online.  SSH or in browser.