* Re: The new X
1998-06-23 16:10 The new X (was Re: Making programs 64 bit clean) Christopher Curtis
@ 1998-06-23 21:03 ` Wes Bauske
1998-06-24 0:07 ` Paul Tomblin
1998-06-24 13:59 ` Jeff Sturm
0 siblings, 2 replies; 6+ messages in thread
From: Wes Bauske @ 1998-06-23 21:03 UTC (permalink / raw)
To: axp-list
Christopher Curtis wrote:
>
> On Tue, 23 Jun 1998, Jeff Sturm wrote:
>
> > Windows runs like crap in 4-bit color. You don't really like dithering,
> > do you??
>
> Runs like crap? Looks like crap, yes, but runs well. Many (most, all?) X
> apps won't even load in a 4-bit display.
>
Who uses a 4 bit display card?
Why worry about it at all?
8 bits is really the minimum, whether Windows or X.
> > The biggest difference here is that Windows application developers had
> > gotten used to 4-bit and 8-bit displays. Until recently there were few
> > Windows applications that would even attempt to use more than 256 colors.
>
> point?? If you go buy a Sparc 10 for $5,000 you only get an 8-bit dpy.
>
Who would pay $5K for a Sparc 10??
> > If applications like Netscape and GIMP hog color resources, well, that's
> > not exactly a X problem...
>
True, it's the application's problem.
> It is because they aren't allowed to share. I don't know the details of
> exactly what is wrong, but you cannot have two color-intensive apps
> loaded. Like Netscape and anything, or GIMP and anything. One color
> intensive app screws everybody.
>
They can share. The problem is there is no 'standard' how to do it well.
Using a 16bit True Color visual, I can display as many color
intensive apps as I want as long as they support True color.
Course that means programmer has to know how to use that visual.
It is different compared to Pseudo-Color.
I doubt Windows is capable of running two simultaneous high
color apps at the same time with BOTH windows visible. Have
you ever noticed that high color windows alway seem to expand
themselves to full screen under Windows? At least the 3-4 I've used
do. Two obvious reasons. One, more pixels, two, can't see what
any other window looks like. Now I don't use Windows alot so
I give them the benefit of doubt that the main reason is #1.
Honestly, I see no easy way to manage 8 bit displays better
than X does. Once you get to 16 bit and a True Color visual,
you have no problems, either with Windows or X. If I think
about it, next time I run Windows, I'll use one of my image
manipulation programs and display two radically different
pics in two simultaneous windows at 8bit and see what it
looks like. Doubt it will be pretty though. One trick I do
in an 8 bit environment is to maintain an atom in the server
window of a set of colormap entries to use for my programs
that guarantees the main WM colors don't flash. Then, any
cell outside that range is copied into the private map. Only
cells in that range can be changed by the apps. Looks a
bit better than the whole damn thing flashing, borders and
all, but again, this is the programmer's responsibility.
My $.02.
Wes
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: The new X
1998-06-23 21:03 ` The new X Wes Bauske
@ 1998-06-24 0:07 ` Paul Tomblin
1998-06-24 16:02 ` Wes Bauske
1998-06-24 13:59 ` Jeff Sturm
1 sibling, 1 reply; 6+ messages in thread
From: Paul Tomblin @ 1998-06-24 0:07 UTC (permalink / raw)
To: axp-list
Quoting Wes Bauske (wsb@paralleldata.com):
> I doubt Windows is capable of running two simultaneous high
> color apps at the same time with BOTH windows visible. Have
I suspect what Windows does, and what X applications could easily do, is to
divide the entire color space up before hand into as many chunks as your card
would support, and then when an application requests a color, gives it
whichever of the pre-registered colours is the closest match. I don't know
the best way to allocate those colours - my first inclination on an eight bit
display would be all permutations and combinations of 3 bits for red, 3 green,
2 blue - and then somehow map that back onto 16 bits per channel of the X
colour scheme. But I'm sure my former collegues at Kodak could come up with
something better.
--
Paul Tomblin, ptomblin@xcski.com.
"It's just a cardboard model. Fake security"
"Jeez, that's a first for Microsoft"
- User Friendly
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: The new X
1998-06-23 21:03 ` The new X Wes Bauske
1998-06-24 0:07 ` Paul Tomblin
@ 1998-06-24 13:59 ` Jeff Sturm
1 sibling, 0 replies; 6+ messages in thread
From: Jeff Sturm @ 1998-06-24 13:59 UTC (permalink / raw)
To: axp-list
On Tue, 23 Jun 1998, Wes Bauske wrote:
> I doubt Windows is capable of running two simultaneous high
> color apps at the same time with BOTH windows visible. Have
> you ever noticed that high color windows alway seem to expand
> themselves to full screen under Windows? At least the 3-4 I've used
> do. Two obvious reasons. One, more pixels, two, can't see what
> any other window looks like. Now I don't use Windows alot so
> I give them the benefit of doubt that the main reason is #1.
I've tried rendering various .jpeg files in Netscape under
an 8-bit display in Windows. It doesn't crash or cause an error,
but the colors become dithered on the second window and all others.
Curiously they remain that way even after I close all but one
window. I guess Netscape on Windows doesn't manage colors too well
either.
Jeff
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: The new X
1998-06-24 0:07 ` Paul Tomblin
@ 1998-06-24 16:02 ` Wes Bauske
1998-06-24 18:01 ` Christopher Curtis
0 siblings, 1 reply; 6+ messages in thread
From: Wes Bauske @ 1998-06-24 16:02 UTC (permalink / raw)
To: axp-list
Paul Tomblin wrote:
>
> Quoting Wes Bauske (wsb@paralleldata.com):
> > I doubt Windows is capable of running two simultaneous high
> > color apps at the same time with BOTH windows visible. Have
>
> I suspect what Windows does, and what X applications could easily do, is to
> divide the entire color space up before hand into as many chunks as your card
> would support, and then when an application requests a color, gives it
> whichever of the pre-registered colours is the closest match. I don't know
> the best way to allocate those colours - my first inclination on an eight bit
> display would be all permutations and combinations of 3 bits for red, 3 green,
> 2 blue - and then somehow map that back onto 16 bits per channel of the X
> colour scheme. But I'm sure my former collegues at Kodak could come up with
> something better.
>
Sounds like you just described the X True Color visual to me, which
can be supported at 8 bits but it depends on if the X server has it
implemented that way. My Rage Pro/Mystique/Permedia cards are all
True Color when I run them at 16 bit with XFree on PPro's/Alphas.
No flashing occurs on them when I run high color apps. X has a
XGetRGBColormap/XSetRGBColormap routine to manage sharing color
maps. Most apps don't go to the trouble of using this feature though.
The routines also attach atoms to the Root window to allow you
to fetch them from any other window. They use ICCCM (Inter Client
Communication Conventions Manual) conventions when accessing the
atoms/info on the root window. So, one proposal to behave "like
Windows" would be to have the WM set up color maps for use by
all apps and then tell everyone they have to use those colormaps.
(That would float like a lead ballon)
Come to think of it, when I run Netscape and XV on the same screen
in 8 bit mode, things still don't flash. Who ever starts last just
doesn't get many colors. Are you all saying GIMP flashes?? That's
GIMP's problem then...
Wes
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: The new X
@ 1998-06-24 17:26 Paul Tomblin
0 siblings, 0 replies; 6+ messages in thread
From: Paul Tomblin @ 1998-06-24 17:26 UTC (permalink / raw)
To: axp-list
Sorry if you see this twice. One of my telnet windows to my home machine is
acting funny so I'm not sure if this got out before it started acting up.
Quoting Wes Bauske (wsb@paralleldata.com):
> Come to think of it, when I run Netscape and XV on the same screen
> in 8 bit mode, things still don't flash. Who ever starts last just
> doesn't get many colors. Are you all saying GIMP flashes?? That's
> GIMP's problem then...
That's what I've been saying. There are plenty of "good" compromises to using
colors in X which I don't believe are there in Windows. Microsoft products
generally take a "our way, or the highway" approach while X gives the
programmers more leeway to do the right thing or to hang themselves.
Unfortunately, most programmers take the easy way out and end up with stuff
that works fine on their machines, but not on the low-end.
--
Paul Tomblin, ptomblin@xcski.com.
"It's just a cardboard model. Fake security"
"Jeez, that's a first for Microsoft"
- User Friendly
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: The new X
1998-06-24 16:02 ` Wes Bauske
@ 1998-06-24 18:01 ` Christopher Curtis
0 siblings, 0 replies; 6+ messages in thread
From: Christopher Curtis @ 1998-06-24 18:01 UTC (permalink / raw)
To: axp-list
On Wed, 24 Jun 1998, Wes Bauske wrote:
> Come to think of it, when I run Netscape and XV on the same screen
> in 8 bit mode, things still don't flash. Who ever starts last just
> doesn't get many colors. Are you all saying GIMP flashes?? That's
> GIMP's problem then...
If you do netscape -install or have gimp install a private colormap or
tell xv to use a private colormap or try to run xboing (which forces a
private colormap) they flash. If they don't install a private colormap
they either suffer from SEVERE color loss or don't run at all (xboing).
And even then it's not the application's problem, but the users'.
And then it's everyone's.
--
Christopher Curtis - http://www.ee.fit.edu/users/ccurtis
Florida Institute of Technology - System Administrator, Programmer
Melbourne, Florida USA - http://www.lp.org/
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~1998-06-24 18:03 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-06-24 17:26 The new X Paul Tomblin
-- strict thread matches above, loose matches on Subject: below --
1998-06-23 16:10 The new X (was Re: Making programs 64 bit clean) Christopher Curtis
1998-06-23 21:03 ` The new X Wes Bauske
1998-06-24 0:07 ` Paul Tomblin
1998-06-24 16:02 ` Wes Bauske
1998-06-24 18:01 ` Christopher Curtis
1998-06-24 13:59 ` Jeff Sturm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox