Problem with SDL 1.2.7 using home made mouse cursor on Nvidia graphics card under Windows XP OS

Hi (sorry for the really long title ;))

Ok so I got a problem which is really strange with my program using SDL.

The test I’ve done so far on a really little beginning of my application
show that I got no problem on ATI systems. But when I test it under Nvidia
graphics system, I got a really awful and strange bug. The mouse is totally
erratic and not smooth at all. The weird thing is that as I check, the fps
is of at least 200Fps. And for the mouse which I handle myself (not using
the SDL routines) so I hide the SDL standard cursor, and put instead a
sprite at the mouse position.

The way I manage it, is that at the end of each render, I blit the mouse
sprite on my buffer, before to update the screen at the mouse position.

I’ve try two things to made more tests, first a fps limiter, I only draw a
frame every 1/100 seconds (this change nothings ATI still working and not
Nvidia) then I try a little thing which is to use SWSURFACE on SDL_Init
instead of HWSURFACE. And then the mouse is totally smooth on ATI and
Nvidia. But the FPS is awfully reduced.

So I would like to know if someone know something about this problem,
because it is giving me really big troubles if Nvidia did not work
correctly. Could it be a Nvidia driver’s bug ?

I hope someone will be able to give me some help :stuck_out_tongue:

Thanks.

Wedge

PS: I hope I did not make too much mistakes , I’m French :wink:

Hello again.

Just to give some more information. I have found many Nvidia testers.

So far there is problem detected on :

-GeForce FX 5200

-GeForce 4 Ti 4200

-GeForce 3

-GeForce 2 MX

  • TNT2

  • Vanta

So it really covers all the Nvidia chips I think.

I wonder about asking Nvidia directly but I did not find any address for bug
reports or other contact. If someone have one and can give it to me this may
help me.

Thanks for any idea, contact.

Wedge_____

De : sdl-admin at libsdl.org [mailto:sdl-admin at libsdl.org] De la part de
Vandoorine Aurelien
Envoy? : lundi 8 mars 2004 10:02
? : sdl at libsdl.org
Objet : [SDL] Problem with SDL 1.2.7 using home made mouse cursor on Nvidia
graphics card under Windows XP OS.

Hi (sorry for the really long title ;))

Ok so I got a problem which is really strange with my program using SDL.

The test I?ve done so far on a really little beginning of my application
show that I got no problem on ATI systems. But when I test it under Nvidia
graphics system, I got a really awful and strange bug. The mouse is totally
erratic and not smooth at all. The weird thing is that as I check, the fps
is of at least 200Fps. And for the mouse which I handle myself (not using
the SDL routines) so I hide the SDL standard cursor, and put instead a
sprite at the mouse position.

The way I manage it, is that at the end of each render, I blit the mouse
sprite on my buffer, before to update the screen at the mouse position.

I?ve try two things to made more tests, first a fps limiter, I only draw a
frame every 1/100 seconds (this change nothings ATI still working and not
Nvidia) then I try a little thing which is to use SWSURFACE on SDL_Init
instead of HWSURFACE. And then the mouse is totally smooth on ATI and
Nvidia. But the FPS is awfully reduced.

So I would like to know if someone know something about this problem,
because it is giving me really big troubles if Nvidia did not work
correctly. Could it be a Nvidia driver?s bug ?

I hope someone will be able to give me some help :stuck_out_tongue:

Thanks.

Wedge

PS: I hope I did not make too much mistakes , I?m French :wink:

Can you post a link to a complete test program with source so we can
reproduce the problem?

Thanks,
-Sam Lantinga, Software Engineer, Blizzard Entertainment

Hello.

I’ve just changed something to make the mouse problem over or not far to be
other. Since I got some problem, I downgrade my windows version of GCC from
3.2 to GCC 2.95 and it seems that it has solved the problem.

Anyway, there is still a little mouse position bug, but I’ll investigate a
bit more because I find a couple of things that should not be okay. So I
think I’ll be able to do a full report in one or two day.

If it still I’ll give you a source/data link event if I’m starting to have a
big sources part :smiley: even if 115Ko is not a lot I think this represent many
code lines (I do not count them ;))

Wedge

-----Message d’origine-----
De?: sdl-admin at libsdl.org [mailto:sdl-admin at libsdl.org] De la part de Sam
Lantinga
Envoy??: mardi 9 mars 2004 21:08
??: sdl at libsdl.org
Objet?: Re: [SDL] Problem with SDL 1.2.7 using home made mouse cursor on
Nvidia graphics card under Windows XP OS.

Can you post a link to a complete test program with source so we can
reproduce the problem?

Thanks,
-Sam Lantinga, Software Engineer, Blizzard Entertainment_______________________________________________
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Hello back.

So I finally, solve all the problem. And after the first tests the return to
gcc 2.95 for windows has solved the Nvidia troubles (even if it stills
strange).

For the mouse position bug it was some cast I forgot. So for now everything
is fine, and I continue the development of my Engine.

Regards

Wedge

-----Message d’origine-----
De?: sdl-admin at libsdl.org [mailto:sdl-admin at libsdl.org] De la part de
Vandoorine Aurelien
Envoy??: mercredi 10 mars 2004 07:26
??: sdl at libsdl.org
Objet?: RE: [SDL] Problem with SDL 1.2.7 using home made mouse cursor on
Nvidia graphics card under Windows XP OS.

Hello.

I’ve just changed something to make the mouse problem over or not far to be
other. Since I got some problem, I downgrade my windows version of GCC from
3.2 to GCC 2.95 and it seems that it has solved the problem.

Anyway, there is still a little mouse position bug, but I’ll investigate a
bit more because I find a couple of things that should not be okay. So I
think I’ll be able to do a full report in one or two day.

If it still I’ll give you a source/data link event if I’m starting to have a
big sources part :smiley: even if 115Ko is not a lot I think this represent many
code lines (I do not count them ;))

Wedge

-----Message d’origine-----
De?: sdl-admin at libsdl.org [mailto:sdl-admin at libsdl.org] De la part de Sam
Lantinga
Envoy??: mardi 9 mars 2004 21:08
??: sdl at libsdl.org
Objet?: Re: [SDL] Problem with SDL 1.2.7 using home made mouse cursor on
Nvidia graphics card under Windows XP OS.

Can you post a link to a complete test program with source so we can
reproduce the problem?

Thanks,
-Sam Lantinga, Software Engineer, Blizzard Entertainment_______________________________________________
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl