From 2462d6f2201e90a37c098d3d8dd18fcc6bf730f3 Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Tue, 12 Jan 2021 12:46:43 -0500 Subject: [PATCH] I discovered that for large designs, running DBWredisplay will take significant amounts of time even though there is no display to receive the result. However, the "suspendall" command only works if a window exists. The obvious solution is to set GrDisplayStatus to DISPLAY_SUSPEND whenever magic is run with the "-dnull" option. This should help speed up a lot of scripts, in particular where designs are large. --- VERSION | 2 +- graphics/grNull.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index e02f50e2..1beaf238 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -8.3.112 +8.3.113 diff --git a/graphics/grNull.c b/graphics/grNull.c index 6451a4e7..b6bcec46 100644 --- a/graphics/grNull.c +++ b/graphics/grNull.c @@ -281,5 +281,8 @@ nullSetDisplay(dispType, outFileName, mouseFileName) GrScreenRect.r_xtop = 511; GrScreenRect.r_ytop = 483; + /* Set GrDisplayStatus to force graphics updates to be suspended */ + GrDisplayStatus = DISPLAY_SUSPEND; + return TRUE; }