[BUG?] in SDL_GetVideoInfo

Hi,

I’m using SDL CVS on linux.
Consider this code snippet (SDL is initialized)

const SDL_VideoInfo* info = SDL_GetVideoInfo();
printf(" > Video memory: %uK\n", info->video_mem);

When executing this I get:

Video memory: 0K

What am I doing wrong? Or is this a known issue / bug?

Thanks in advance,
Florian Schanda

When executing this I get:

Video memory: 0K

What am I doing wrong? Or is this a known issue / bug?

Video memory is only relevant with a hardware surface, which you never get
under X11.

–ryan.

Oh! Ok.

I was thinking that this gives me my total memory. See, I was hoping to figure
out the amount of texture memort, since I’m writin an OpenGL app. Is there
any easy cross-plattform way to figure this out?
(I know I can just load textures ad nauseum and check if they’re resident, but
that a mess…)

Thanks,
FlorianOn Sunday 19 May 2002 16:47, Ryan C. Gordon wrote:

When executing this I get:

Video memory: 0K

What am I doing wrong? Or is this a known issue / bug?

Video memory is only relevant with a hardware surface, which you never get
under X11.

–ryan.

Under X11 perhaps, but under DGA?On Sun, May 19, 2002 at 12:47:14PM -0400, Ryan C. Gordon wrote:

When executing this I get:

Video memory: 0K

What am I doing wrong? Or is this a known issue / bug?

Video memory is only relevant with a hardware surface, which you never get
under X11.


Joseph Carter Hey, that’s MY freak show!

mmmm, multitextured donuts…
LIM: with fruit filling?
knghtbrd: chocolate cream…

-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 273 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20020519/7b0827d2/attachment.pgp

This information almost useless anyway because it doesn’t tell you how much
hardware surfaces you can get. It always depends on your resolution, hardware
etc. so testing is the better way.

StephanAm Montag 20 Mai 2002 01:25 schrieb Joseph Carter:

On Sun, May 19, 2002 at 12:47:14PM -0400, Ryan C. Gordon wrote:

When executing this I get:

Video memory: 0K

What am I doing wrong? Or is this a known issue / bug?

Video memory is only relevant with a hardware surface, which you never
get under X11.

Under X11 perhaps, but under DGA?

You’ve got a point. And that makes the information not very useful
overall. Perhaps it should be considered for the SDL 1.3 chopping block?On Mon, May 20, 2002 at 01:58:42PM +0200, Stephan Goetter wrote:

Video memory is only relevant with a hardware surface, which you never
get under X11.

Under X11 perhaps, but under DGA?

This information almost useless anyway because it doesn’t tell you how much
hardware surfaces you can get. It always depends on your resolution, hardware
etc. so testing is the better way.


Joseph Carter Crazy in the coconut

What’s this message on my screen,
so blue, so blue, what could it mean?
Could you, would you press Delete,
Ctrl and Alt and then repeat.

-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 273 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20020520/90d6a1e2/attachment.pgp