From owner-freebsd-hackers Thu Jul 2 01:46:39 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA08502 for freebsd-hackers-outgoing; Thu, 2 Jul 1998 01:46:39 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from oslo.geco-prakla.slb.com (geos01.oslo.geco-prakla.slb.com [134.32.44.131]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA08493 for ; Thu, 2 Jul 1998 01:46:32 -0700 (PDT) (envelope-from smoergrd@geos01.oslo.geco-prakla.slb.com) Received: from sunw132.geco-prakla.slb.com (sunw132 [134.32.45.120]) by oslo.geco-prakla.slb.com (8.8.8/8.6.9) with SMTP id KAA19233 ; Thu, 2 Jul 1998 10:46:01 +0200 (MET DST) Received: by sunw132.geco-prakla.slb.com (SMI-8.6/SMI-SVR4) id KAA07641; Thu, 2 Jul 1998 10:46:00 +0200 To: Nick Hibma Cc: FreeBSD hackers mailing list Subject: Re: Console driver (was: Problems with irq 9(2)?) References: Organization: Schlumberger Geco-Prakla X-Disclaimer: I speak only for myself. From: smoergrd@oslo.geco-prakla.slb.com (Dag-Erling Coidan Smørgrav) Date: 02 Jul 1998 10:46:00 +0200 In-Reply-To: Nick Hibma's message of Thu, 2 Jul 1998 09:07:54 +0200 (MET DST) Message-ID: Lines: 25 X-Mailer: Gnus v5.3/Emacs 19.34 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Nick Hibma writes: > Isn't there a way to check in which vertical line the graphical > processor is working and then do a tsleep until it arrives at line > number max-2 and _then_ start to do this idle loop? No. The vertical retrace period is the time during which the electron beam is being repositioned from the bottom right to the top left of the screen. Synchronizing with the vertical retrace is not a trivial task, as any demo coder will tell you. However, no VGA board that I know of will exhibit snow while in text mode, so waiting for vertical retrace is not necessary. It should not be removed, though, as older CGA and MDA boards require it; but it could be turned into a kernel option. If you feel very strongly about this, cut'n'paste this article into send-pr and somebody will get around to it. > Or, much better, use an int routine called by the vertical retrace that > is mentioned in the message below. No. Modern graphics adapters do not have that functionality. DES -- Dag-Erling Smørgrav - smoergrd@oslo.geco-prakla.slb.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message