X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=jvWuu114sTl48Kt2cC/+a5r79pPwrT7NVWWRA89GGL0=; b=ORasagEBSlXKzv0zifLV4aXovukbDZcp9s0MCFBrlxP+w6OfDLR7326WYmOuQYfmWO NRyjqUnWD8LxRqD7kuB0sY2lxAbv+E+JtrsGCyFADwqeYgg7Kh5phNypmt/8HS7TjJKY rWvhxxqh+Xi0hfq4F8FMWrWPIe3aX41nw/3bOLct4+iw/Hshi5rNDfsvhN/vhItEOnzG nh0TFNNhPBPoLsyIHtQ8qVLmPAoBBBLt+z0REVgSvaORmZmxWFkeeLx9cFwB+ZIRu+TY Fsh2nYZML9uUc7l9/Cn4ilonkGmIzYNz0I/Krq6jfIP1He2pIBoewoDl+MApuf5Fyl8q M4Dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=jvWuu114sTl48Kt2cC/+a5r79pPwrT7NVWWRA89GGL0=; b=l8adAeXoBbh8DcOKMs9JvKxGo9PUEjxk4wksUDCdifvYXIb/nZ+3FD/QgTGrhRGFHI ohECQU5+mX5Nc4O+MCsaTpYIExfVDRRwXkXGdFneTUyjGQdqcxYHI+oodkU6aTZK3+tg 6hSLCeg6t6dUt4UmXOvEWQ2JXoqo/DKxU3uks0dit2qcY9jGdzrlKklPXp429FLx7g2u K/Xsdvz53PbMMs/UHrua0Jp7IxPQDh6plR697NGMUqFz/kPQdP/wTVGU9umWnG2ebJdS /aOkB/coxxU/Iok1o7Tt+J/sXycMzgxnJGPk525NY1MaRn2Ljt0tUSsp35ehAhUxtyAB zs1Q== X-Gm-Message-State: ALQs6tDrNCY51tilbShYjSsillkT7AC/9la8O6VqBD23LTmZuTmjkaSo cz0iY8CpEEIGFYU+wVtC5klvOxHnhQOhmiA1nDCKLA== X-Google-Smtp-Source: AB8JxZoJ1Xdq/Nk8LdaDmmDZwkv/pO8Znj1ILaHCqXtGLMyOpzi3X1LoJNBqvmA0vkHU15iqdu8eDO2B9oh6raC4a+I= X-Received: by 10.233.214.29 with SMTP id r29mr26448448qkk.109.1525601006955; Sun, 06 May 2018 03:03:26 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <647dca2ad89a4415ad980da6e5cdc701 AT grupawp DOT pl> <7da892c189bd49838d6ce6eb2c2628e4 AT grupawp DOT pl> From: "Adrian Purser (ade DOT purser AT gmail DOT com) [via geda-user AT delorie DOT com]" Date: Sun, 6 May 2018 11:03:26 +0100 Message-ID: Subject: Re: Odp: Re: [geda-user] Opengl PCB and mainline PCB - pcb-rnd aspects To: geda-user AT delorie DOT com Content-Type: multipart/alternative; boundary="089e08e5933716b3d7056b86aa83" 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 Precedence: bulk --089e08e5933716b3d7056b86aa83 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello Michael, Thanks for the information. Your specs look ok. We require a much lower version of OpenGL than your graphics card supports so that should be fine. I have a celeron pc with a sllightly older radeon card that I could use to perform some tests. If you are able to share the board that you used for your tests then that would be greatly appreciated. Kind Regards, Ade On 6 May 2018 at 09:38, michalwd1979 (michalwd1979 AT o2 DOT pl) [via geda-user AT delorie DOT com] wrote: > Hello Evan, Hello Igor, > > The PC is lenovo T400 laptop with ATI Radeon HD 7350 card (card plugged t= o > advanced dock PCIE x1 slot) + 2 screens. Graphics chip uses CEDAR > microcode, and r600 open source X driver. > According to logs everything related to DRM/DRI2/VDPAU is initialized > properly. > Glxgears runs at 60FPS (synced with screen refresh rate) and stays there > even when spread on both screens with unnoticeable CPU load - seems right= . > > Glxinfo says: > direct rendering: Yes > server glx vendor string: SGI > server glx version string: 1.4 > Extended renderer info (GLX_MESA_query_renderer): > Vendor: X.Org (0x1002) > Device: AMD CEDAR (DRM 2.49.0 / 4.9.76-gentoo-r1-mw, LLVM 5.0.1) > (0x68fa) > Version: 17.3.8 > Accelerated: yes > Video memory: 1024MB > Unified memory: no > Preferred profile: core (0x1) > Max core profile version: 3.3 > Max compat profile version: 3.0 > Max GLES1 profile version: 1.1 > Max GLES[23] profile version: 3.0 > OpenGL vendor string: X.Org > OpenGL renderer string: AMD CEDAR (DRM 2.49.0 / 4.9.76-gentoo-r1-mw, LLVM > 5.0.1) > OpenGL core profile version string: 3.3 (Core Profile) Mesa 17.3.8 > OpenGL core profile shading language version string: 3.30 > OpenGL core profile context flags: (none) > OpenGL core profile profile mask: core profile > > In fact I was surprised that so old PC+graphics can work so well with > transparent windows, movies, gschem, FreeCAD or animated waveforms in > matplotlib. It was also really fast with opengl pcb, it is possible to wo= rk > with boards spread on both screens without any noticeable delays in > rendering. > > 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 slowe= r > 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 wit= h > all pcb versions (for mainline or opengl I don't have complex enough boar= d > to test it further). > > I also tried these tests on lenovo T400 with internal i965 graphics card > and integrated screen - very similar results. The laptop is configured as > before, only graphics drivers are different. If You need some more info o= r > want the board I used for tests then please let me know. > Best Regards, > Michael Widlok > > > Dnia 4 maja 2018 20:27 michalwd1979 napisa=C5=82(a)= : > > Hello Michael, > > On Fri, 4 May 2018, michalwd1979 (michalwd1979 AT o2 DOT pl) [via > geda-user AT delorie DOT com] wrote: > > Hello Igor, > > Thanks for reply. The features of pcb-rnd are impressive and I really lik= e > the fast development of the branch. I remember back then when we talked > about opengl and I've tried to merge some of the rendering code but my > programming skills were good not enough, sorry... > > I am not sure if the problem is my >10 years old PC, my hardly tuned > gentoo, > wrong compile options or just a bad luck, but I always had speed problems > with anything but Peter's opengl branch (recently mainline pcb become > similar in rendering speed). Today I've tried fresh compiled pcb-rnd 1.2.= 8 > with default: > ./configure --prefix=3D/usr/local --buildin-hid_gtk2_gl > --disable-hid_gtk2_gdk > make > > Loading more complicated 4 layers board to pcb-rnd makes working on it > impossible. Moving cursor takes about 15s with cpu load at 100%, zooming > in/out is even slower. I know that my equipment is nothing compared to > current (even low-end) machines, but still - the same board in mainline o= r > opengl pcb moves/zooms in almost no time. > If You want me to perform more test with different configure options or > want > more data about rest of the system, then let me know. Maybe I have > something > very wrong here. > > > Thanks for reporting. > > I think there can be two kind of reasons behind this: > > 1. opengl related issue; Ade, our opengl expert, will contact you about > this. Evan could help with gentoo, it might be some gentoo+opengl > installation problem. > > 2. non-opengl related; a few things you could try: > > - turn off visible grid (drawing the dots may be slow if your window is > large) > > - turn on thin drawing mode (to see if the problem is related to polygon > rendering) > > - please check how it works with software render (gdk); Note: with > pcb-rnd, you do not need to disable HIDs, you can let it detect and > compile all HIDs it finds, as you can select your hid runtime. (You can > even configure your HID preference: which HIDs should be tried in which > order if you didn't explicitly specify a HID to run). > > > Best regards, > > Igor2 > > > --089e08e5933716b3d7056b86aa83 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello Michael,

Thanks for the informati= on. Your specs look ok.=C2=A0 We require a much lower version of OpenGL tha= n your graphics card supports so that should be fine.=C2=A0

<= /div>
I have a celeron pc with a sllightly older radeon card that I cou= ld use to perform some tests. If you are able to share the board that you u= sed for your tests then that would be greatly appreciated.

Kind Regards,

Ade


On 6 May 2018 = at 09:38, michalwd1979 (michalwd1979@= o2.pl) [via geda-user AT delorie.= com] <geda-user AT delorie DOT com> wrote:
Hello Evan, Hello Igor,

The PC is lenovo T400 lapt= op with ATI Radeon HD 7350 card (card plugged to advanced dock PCIE x1 slot= ) + 2 screens. Graphics chip uses CEDAR microcode, and r600 open source X d= river.
According to logs everything related to DRM/DRI2/VDPAU is initia= lized properly.
Glxgears runs at 60FPS (synced with screen refresh rate= ) and stays there even when spread on both screens with unnoticeable CPU lo= ad - seems right.

Glxinfo says:
direct rendering: Yes
server glx vendor string: SGI
server glx version stri= ng: 1.4
Extended renderer info (GLX_MESA_query_renderer):
=
=C2=A0=C2=A0=C2=A0 Vendor: X.Org (0x1002)
=C2=A0= =C2=A0=C2=A0 Device: AMD CEDAR (DRM 2.49.0 / 4.9.76-gentoo-r1-mw, LLVM 5.0.= 1) (0x68fa)
=C2=A0=C2=A0=C2=A0 Version: 17.3.8
= =C2=A0=C2=A0=C2=A0 Accelerated: yes
=C2=A0=C2=A0=C2=A0 Video = memory: 1024MB
=C2=A0=C2=A0=C2=A0 Unified memory: no
=C2=A0=C2=A0=C2=A0 Preferred profile: core (0x1)
=C2=A0= =C2=A0=C2=A0 Max core profile version: 3.3
=C2=A0=C2=A0=C2=A0= Max compat profile version: 3.0
=C2=A0=C2=A0=C2=A0 Max GLES1= profile version: 1.1
=C2=A0=C2=A0=C2=A0 Max GLES[23] profile= version: 3.0
OpenGL vendor string: X.Org
OpenG= L renderer string: AMD CEDAR (DRM 2.49.0 / 4.9.76-gentoo-r1-mw, LLVM 5.0.1)=
OpenGL core profile version string: 3.3 (Core Profile) Mesa = 17.3.8
OpenGL core profile shading language version string: 3= .30
OpenGL core profile context flags: (none)
O= penGL core profile profile mask: core profile

= In fact I was surprised that so old PC+graphics can work so well with trans= parent windows, movies, gschem, FreeCAD or animated waveforms in matplotlib= . It was also really fast with opengl pcb, it is possible to work with boar= ds spread on both screens without any noticeable delays in rendering.
<= /div>

In pcb-rnd switching GUI to gtk2_gdk makes it a bi= t slower, but not much (thanks Igor for info about GUI, I recompiled pcb-rn= d 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 mod= e ON (polygons thin draw was ON already) speeds it up drastically, but stil= l it is slower then opengl version (without thin draw). Now moving cursor t= akes ~1s or a bit more. I also noticed that the speed drops "exponenti= ally" 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).

I = also tried these tests on lenovo T400 with internal i965 graphics card and = integrated screen - very similar results. The laptop is configured as befor= e, only graphics drivers are different. If You need some more info or want = the board I used for tests then please let me know.
Best Rega= rds,
Michael Widlok


Dnia 4 maja 2018 20:27 michalwd1979 <gedau AT igor2 DOT repo DOT hu> napisa=C5=82(= a):

Hello Michael,

On = Fri, 4 May 2018, michalwd1979 (michalwd1979 AT o2 DOT pl) [via geda-user AT delorie DOT com] wrote:
Hello Igor,

Thanks fo= r reply. The features of pcb-rnd are impressive and I really like
=
the fast development of the branch. I remember back then when we talke= d
about opengl and I've tried to merge some of the render= ing code but my
programming skills were good not enough, sorr= y... =C2=A0

I am not sure if the problem is my= >10 years old PC, my hardly tuned gentoo,
wrong compile o= ptions or just a bad luck, but I always had speed problems
wi= th anything but Peter's opengl branch (recently mainline pcb become
=
similar in rendering speed). Today I've tried fresh compiled= pcb-rnd 1.2.8
with default:
./configure --pref= ix=3D/usr/local --buildin-hid_gtk2_gl --disable-hid_gtk2_gdk
= make

Loading more complicated 4 layers board t= o pcb-rnd makes working on it
impossible. Moving cursor takes= about 15s with cpu load at 100%, zooming
in/out is even slow= er. I know that my equipment is nothing compared to
current (= even low-end) machines, but still - the same board in mainline or
=
opengl pcb moves/zooms in almost no time.
If You want me= to perform more test with different configure options or want
more data about rest of the system, then let me know. Maybe I have someth= ing
very wrong here.


Thanks for reporting.

I think= there can be two kind of reasons behind this:

1. opengl related issue; Ade, our opengl expert, will contact you about
this. Evan could help with gentoo, it might be some gentoo+open= gl
installation problem.

2. non-= opengl related; a few things you could try:

- = turn off visible grid (drawing the dots may be slow if your window is
large)

- turn on thin drawing mode (t= o see if the problem is related to polygon
rendering)

- please check how it works with software render (gdk= ); Note: with
pcb-rnd, you do not need to disable HIDs, you c= an let it detect and
compile all HIDs it finds, as you can se= lect your hid runtime. (You can
even configure your HID prefe= rence: which HIDs should be tried in which
order if you didn&= #39;t explicitly specify a HID to run).


Best regards,

Igor2


--089e08e5933716b3d7056b86aa83--