delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2018/05/06/10:25:38

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
Date: Sun, 6 May 2018 16:23:37 +0200 (CEST)
X-X-Sender: igor2 AT igor2priv
To: "michalwd1979 (michalwd1979 AT o2 DOT pl) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
X-Debug: to=geda-user AT delorie DOT com from="gedau AT igor2 DOT repo DOT hu"
From: gedau AT igor2 DOT repo DOT hu
Subject: Re: Odp: Re: [geda-user] Opengl PCB and mainline PCB - pcb-rnd
aspects
In-Reply-To: <b84c48bc6c46413e809346a1a0baad2c@grupawp.pl>
Message-ID: <alpine.DEB.2.00.1805061609300.8169@igor2priv>
References: <ca+qhd=-z1tvzehozmmi+8eduqnwmaeeeodg=uk3p6mb9tj57dq AT mail DOT gmail DOT com> <647dca2ad89a4415ad980da6e5cdc701 AT grupawp DOT pl> <cajzxidbrzvoaivzxdhdcehdmubu-a5c8ueaeud6q-r0prvibya AT mail DOT gmail DOT com> <d44c1d9475c440a09121d3247c43b1d1 AT grupawp DOT pl>
<alpine DOT deb DOT 2 DOT 00 DOT 1804301857010 DOT 19825 AT igor2priv> <7da892c189bd49838d6ce6eb2c2628e4 AT grupawp DOT pl> <alpine DOT DEB DOT 2 DOT 00 DOT 1805042003061 DOT 19825 AT igor2priv> <b84c48bc6c46413e809346a1a0baad2c AT grupawp DOT pl>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
MIME-Version: 1.0
Reply-To: geda-user AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: geda-user AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

Hello Michael,

On Sun, 6 May 2018, michalwd1979 (michalwd1979 AT o2 DOT pl) [via geda-user AT delorie DOT com] wrote:

>In pcb-rnd switching GUI to gtk2_gdk makes it a bit slower, but not much
>(thanks Igor for info about GUI, I recompiled pcb-rnd and used --gui
>gtk2_gl/gdk). Turing grid on/off also makes a difference, but still it takes
>>10 seconds do move a cursor. Turing thin drawing mode ON (polygons thin
>draw was ON already) speeds it up drastically, but still it is slower then
>opengl version (without thin draw). Now moving cursor takes ~1s or a bit
>more. I also noticed that the speed drops "exponentially" as the complexity
>of the board increases, but it seems that this is the case with all pcb
>versions (for mainline or opengl I don't have complex enough board to test
>it further).

Thank you for the detailed description on different combinations of 
setting and their effect on the rendering speed! This gave me a few ideas, 
a few suspects what could be the bottleneck. A series of tests will 
follow.

First, please download http://igor2.repo.hu/tmp/4096.lht.gz and open it 
with pcb-rnd 1.2.8 or trunk (which is at the moment is pretty much the 
release candidate for pcb-rnd 2.0.0).

This test features 4096 straight lines. Please do the following tests and 
estimate the rendering speed (e.g. FPS). If possible, please do the test 
with both gl and gdk. If you have lesstif available (you need the motif 
dev package these days), please also try with --gui lesstif.


1. open pcb-rnd on a large window, possibly spanning multiple screens; 
zoom out to make sure all lines are visible - preferrably it should take 
about 2/3 of the drawing area; then start to pan as if there's no tomorrow 
and estimate the FPS.

2. Same test, but on a large pcb-rnd window spanning only one screen

3. Same test, with a pcb-rnd window as small as 1/4th of one of your 
screens


FYI, results from my developer box, an old 1.2 GHz celeron laptop with 
absolutely no hardware acceleration/opengl support installed:

1. feels like 10..15 fps with gdk and about ~3 fps with lesstif

2. feels like 30+ fps with gdk, about ~5 fps with lesstif

3. feels like infinite fps with gdk and ~10 fps with lesstif

(I had a --debug compilation of pcb-rnd so not compiled with -O2)


Depending on the results on your system, we'd proceed either in a 
multilayer direction with more test files or in gl setup debugging.

Best regards,

Igor2

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019