Re: XDrawRectangle workaround

[email protected] Wed, 03 May 2023 14:40:05 -0500
Newsgroups gmane.comp.lib.fox-toolkit.user
Message-ID <[email protected]>
On 2023-05-03 14:23, Sander Jansen wrote:
> uhmm, it only sets it to 1 if the current value is 0, right?

True, but you'd still be switching it back and forth a LOT.
Since it is apparent that there is no difference between 0 [lines
at thin as possible, which means 1 pixel], and 1 [1 pixel],
why then not simply initialize to 1 to begin with, and
never switch it unless we explictly call setLineWidth() ?

It saves a lot of I/O to server, even if it were smart
enough to "compress" repeated GC attribute changes with
no drawing calls in between them...

Is it only the old Intel GPU that has the issue? Because
I don't remember seeing the problem on 530- and 630-series
Intel or "IRIS Pro" graphics GPUs..



           -- JVZ