pcb-lesstif slowness

If anyone besides me is having problems with the rats redrawing too slow in the lesstif gui, here's a patch wot fixes it. (pcb mailing list is read only)

---------------------------------------------------------------------------------------------------------

From e78cf0b0712cf2f58b4b920893c43b4feafead11 Mon Sep 17 00:00:00 2001 From: Johann Klammer Date: Thu, 24 Nov 2016 01:01:30 +0100 Subject: [PATCH] fixes nasty lags when drawing rats in the lesstif gui..

--- src/draw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/draw.c b/src/draw.c index 00966af..b510fca 100644

--- a/src/draw.c

+++ b/src/draw.c @@ -929,7 +929,7 @@ DrawRats (const BoxType *drawn_area) * XXX gtk only allows negative drawing. * XXX using the mask here is to get rat transparency */

- int can_mask = strcmp(gui->name, "lesstif") == 0;

  • int can_mask = 0;//strcmp(gui->name, "lesstif") == 0; if (can_mask) gui->graphics->use_mask (HID_MASK_CLEAR);

--

2.1.4
Reply to
Johann Klammer
Loading thread data ...

A very public-spirited gesture. Got a one-line explanation of why it works?

--
Bill Sloman, Sydney
Reply to
bill.sloman

The pcb mailing list is not read only, however it is at snipped-for-privacy@delorie.com (see

formatting link

Reply to
DJ Delorie

I have no Idea. Might be the xorg or the video driver. I do suspect it reads from the framebuffer or something. sysprof showed it was spending 58% in pixman_region_selfcheck() when zooming around.. setting rats invisible in the UI removed the lag, so I checked I f I could disable something...

another patch for a memory error:

Reply to
Johann Klammer

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.