pcb-lesstif slowness

Nov 24, 2016 3 Replies

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

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

Bill Sloman, Sydney

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

formatting link

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:

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required