Ahem, again the thing with pixmaps

Hi Sam,
You don’t already support pixmaps with XWindows, do you?
It would make many just-blit things really fast…
I know, I asked you before and you told me you
had no time for that and that I should write it
by myself, but I think I would only mess up your
code :wink: - I’m one of the bad OO-people

cu
Manuel

Manuel Klimek wrote:

Hi Sam,
You don’t already support pixmaps with XWindows, do you?

What exactly do you mean by “support pixmaps with XWindows”??

Paul Lowe
spazz at ulink.net

Manuel Klimek wrote:

Hi Sam,
You don’t already support pixmaps with XWindows, do you?

What exactly do you mean by “support pixmaps with XWindows”??

Ok, talking with the XServer you can store your Image basically
in two ways:
- In System memory (on the computer where you started
your program) : XImages
- Directly in XServer memory : Pixmaps

Espacially on the quite old Sparc 20 I work on at my university
it takes a long time to blit a XImage, because all the data must
be copied to the XServer before you can see it.
And i recognized something else: The blitting is even faster than
with Shm if you only blit data you load once. That would be
great help for me, because I try to write an online rpg client
in iso 3d mode… no rendering here :slight_smile: just blitting
last year I gave Sam a sample program (scrolling 800x600 pixels)
But I dont know wether Ive got it somewhere …

c ya
Manuel

Okay, here’s the problem.
If you use pixmaps, you need to copy the entire display window to the
local system and then send it back to the display every time you want
to modify the raw bits on the screen.

If you need this kind of support, you’re probably better off using
native X pixmaps and drawing primitives.

I am thinking of changing the SDL_HWSURFACE flag to SDL_HWCACHED to
more accurately reflect the speed and type of access to the surface,
in which case pixmaps can be thought of as hardware cached surfaces.

If I do this, how many people would benefit?

Manuel Klimek wrote:

Hi Sam,
You don’t already support pixmaps with XWindows, do you?

What exactly do you mean by “support pixmaps with XWindows”??

Ok, talking with the XServer you can store your Image basically
in two ways:

  • In System memory (on the computer where you started
    your program) : XImages
  • Directly in XServer memory : Pixmaps

Espacially on the quite old Sparc 20 I work on at my university
it takes a long time to blit a XImage, because all the data must
be copied to the XServer before you can see it.
And i recognized something else: The blitting is even faster than
with Shm if you only blit data you load once. That would be
great help for me, because I try to write an online rpg client
in iso 3d mode… no rendering here :slight_smile: just blitting
last year I gave Sam a sample program (scrolling 800x600 pixels)
But I dont know wether Ive got it somewhere …

c ya
Manuel

-Sam Lantinga				(slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec