Mail Archives: geda-user/2018/05/06/10:25:38
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 -