Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.forth > #135665

Re: General routine for a polyline or a polygon

Date Sat, 12 Sep 2026 02:34:43 +1000
MIME-Version 1.0
User-Agent Mozilla Thunderbird
Subject Re: General routine for a polyline or a polygon
Newsgroups comp.lang.forth
References <117u1p9$1toc3$1@dont-email.me> <6aa2b1a4$1@news.ausics.net> <117uovt$26cqd$1@dont-email.me> <1180oon$2refu$1@dont-email.me> <6aa4186a$1@news.ausics.net>
Content-Language en-GB
From dxf <dxforth@gmail.com>
In-Reply-To <6aa4186a$1@news.ausics.net>
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 7bit
NNTP-Posting-Host news.ausics.net
Message-ID <6aa42da3$1@news.ausics.net> (permalink)
Organization Ausics - https://newsgroups.ausics.net
Lines 31
X-Complaints abuse@ausics.net
Path csiph.com!news.bbs.nz!news.ausics.net!not-for-mail
Xref csiph.com comp.lang.forth:135665

Show key headers only | View raw


On 12/09/2026 1:04 am, dxf wrote:
> On 11/09/2026 9:30 pm, Hans Bezemer wrote:
>> On 10-09-2026 19:22, Hans Bezemer wrote:
>> In my enthusiasm I had completely overlooked that 4tH is 32/64-bit and DX-Forth is 16-bit. I tried arc-circles, bezier curves -- I never even tried ellipses, because these require double words in 32-bit 4tH to begin with, so -- no chance of winning.
>>
>> But! At least you now got circles as well ;-) (Yeah, I tried!)
> 
>   1 fload xplgraph
> 
>   $12 SetVid  \ 640x480x16
> 
>   6 value color
> 
>   xmax 2/ ymax 2/ 100 circle
> 
>   key drop
> 
>   $03 SetVid
> 
> Too easy ;)
> 
> Circle only took 6 mS to draw under DOSBOX.  Tried it with BGI graphics
> and it was 8 mS.  The BGI is all machine code so if it were going to be
> better, I'd expect to see that reflected.

The bottleneck was the Borland EGAVGA BGI driver.  Substituting a third-party
SVGA BGI driver, the time dropped to 1 mS.  IIRC things like Circle weren't
typically handled in the driver but emulated in the graphics library.  In the
case of the SVGA BGI circle was handled internally and plainly faster.  Even
so, the performance of forth-based Circle is still very respectable.

Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

General routine for a polyline or a polygon Hans Bezemer <the.beez.speaks@gmail.com> - 2026-09-10 12:46 +0200
  Re: General routine for a polyline or a polygon dxf <dxforth@gmail.com> - 2026-09-10 23:33 +1000
    Re: General routine for a polyline or a polygon Hans Bezemer <the.beez.speaks@gmail.com> - 2026-09-10 19:22 +0200
      Re: General routine for a polyline or a polygon Hans Bezemer <the.beez.speaks@gmail.com> - 2026-09-11 13:30 +0200
        Re: General routine for a polyline or a polygon dxf <dxforth@gmail.com> - 2026-09-12 01:04 +1000
          Re: General routine for a polyline or a polygon dxf <dxforth@gmail.com> - 2026-09-12 02:34 +1000
            Re: General routine for a polyline or a polygon Hans Bezemer <the.beez.speaks@gmail.com> - 2026-09-11 19:22 +0200

csiph-web