edbrowse-dev - development list for edbrowse
 help / color / mirror / Atom feed
From: Adam Thompson <arthompson1990@gmail.com>
To: Karl Dahlke <eklhad@comcast.net>
Cc: Edbrowse-dev@lists.the-brannons.com
Subject: Re: [Edbrowse-dev] Churning Timers
Date: Tue, 31 Jan 2017 19:27:12 +0000	[thread overview]
Message-ID: <20170131192711.GB2022@odin> (raw)
In-Reply-To: <20170030060040.eklhad@comcast.net>

[-- Attachment #1: Type: text/plain, Size: 2636 bytes --]

Thanks for fixing this, along with the attributes stuff.
As an interesting note, if you use the latest version on:
http://acid3.acidtests.org

It's fairly clear that the page loads, gets rendered, then blanked by some js
breakage.  I've yet to see an error in the output but I've not had time to do
much checking with this new code.

On Mon, Jan 30, 2017 at 06:00:40AM -0500, Karl Dahlke wrote:
> Ok,here is the problem of the day.
> If you don't apply my latest push / fix, and go to this site, it locks you out in what seems like an infinite loop.
> You can type and type and nothing happens.
> Hit control c and get the usual "type qt to quit" message, but still you have no access.
> You have to kill the process. At least that's what happens over here.
> 
> http://www.huffingtonpost.com/entry/the-inevitability-of-impeachment_us_588e8d52e4b0b065cbbcd09f
> 
> I thought my code was traversing a broken tree forever, again, or some such, but no.
> I fixed those problems.
> This site has a half doesn't timers, actually intervals, that fire every 50ms.
> My implementation is sufficiently slow, or perhaps I have the wrong priorities on select() channels, or some such, that I am locked out.
> As a bandaid, I now wait at least 230ms before running timers.
> That is the latest push.
> It's just a couple lines of code.
> I actually don't think this is a bad idea.
> Timers firing every 50ms almost surely exist to render fast visual effects, which are lost on us.
> If it takes a couple minutes to read a message on the screen, or understand what part of the screen has changed,
> then there's just no reason to change the screen 20 times a second.
> Slowing down the process fixes the problem.
> I can enter commands and edbrowse responds.
> Type db4 and oh yes you can see the timers firing, and the screen rerendering, even though nothing on the screen changes.
> Type db1 to go back to quiet.
> It works, though even at this level it consumes 10% of my processor.
> If I happen to have 10 such web pages open, either in parallel or pushed up onto the stack, the whole processor is churning.
> So we don't have a clear solution yet.
> Obviously the real browsers fire these timers 20 times a second without making a dent in cpu usage and without blocking user input.
> No idea how they do it.
> 
> Anyways, the web page works now, and as for its contents, I can only hope he's right.
> 
> Karl Dahlke

> _______________________________________________
> Edbrowse-dev mailing list
> Edbrowse-dev@lists.the-brannons.com
> http://lists.the-brannons.com/mailman/listinfo/edbrowse-dev


[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]

  parent reply	other threads:[~2017-01-31 19:26 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-30 11:00 Karl Dahlke
2017-01-30 23:33 ` [Edbrowse-dev] Churning timers / I'd like to submit 3 things today Kevin Carhart
2017-01-30 23:37   ` Kevin Carhart
2017-01-31  2:31     ` [Edbrowse-dev] Churning timers / I'd like to submit 3 things Karl Dahlke
2017-01-31 18:47       ` Adam Thompson
2017-01-31 19:27 ` Adam Thompson [this message]
2017-02-01  0:38   ` [Edbrowse-dev] Churning Timers Kevin Carhart
2017-02-01  0:52     ` [Edbrowse-dev] acidtests script 8 Kevin Carhart
2017-02-02  1:16       ` [Edbrowse-dev] acidtests.org Kevin Carhart

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170131192711.GB2022@odin \
    --to=arthompson1990@gmail.com \
    --cc=Edbrowse-dev@lists.the-brannons.com \
    --cc=eklhad@comcast.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).