Low priority mouse cursor on GNU/Linux

I saw the DirectX version of the game Neverwinter Nights, from Bioware,
and a very significant difference from the SDL GNU/Linux version
impressed me: it is much harder to play the SDL version than the DirectX
version, the speed of the SDL version is tiring, despite both run
apparently in the same speed.

Then I realized that they run at the same speed, but the mouse cursor do
not. The mouse cursor on the SDL version of the game is drawn at the
same speed as the game scene, while in the DirectX version the mouse
cursor is much faster, it is as fast as the normal window manager
cursor, even when the game is slow.

I am not sure if this difference has something to do with SDL, but I
belive it has because I know that SDL have a system to deal with mouse
cursor. If it is true, I would like to suggest the maintainers of the
SDL Lib to increase the priority of the mouse cursor, so you would make
happy another Brazilian who could play his game in home :slight_smile: .

Thanks.

Sorry about my english.–
Lucas Clemente Vella
@Lucas_Clemente_Vella

I am not sure if this difference has something to do with SDL, but I
belive it has because I know that SDL have a system to deal with mouse
cursor. If it is true, I would like to suggest the maintainers of the
SDL Lib to increase the priority of the mouse cursor, so you would make
happy another Brazilian who could play his game in home :slight_smile: .

(I don’t know exactly what NWN does, but) you can have SDL use the X11
cursor, which isn’t bound to your game’s framerate, but this is specific
to the application and not SDL.

Many games hide the system (X11) cursor and render a textured quad
in-game for the mouse cursor.

–ryan.

NWN indeed renders the cursor in software, so the cursor speed depends
on FPS. There is hack to replace the slow rendered mouse with a
hardware mouse using XCursor (XFree86 4.3 or higher).

http://home.woh.rr.com/nwmovies/nwmouse/

This is from the same guy that does the useful NWMovies and NWUser
hacks/fixes. Works by capturing calls to SDL_ShowCursor().

See the following topics on the Bioware forums;

http://nwn.bioware.com/forums/viewtopic.html?topic=321479&forum=72&highlight=mouse
http://nwn.bioware.com/forums/viewtopic.html?topic=333663&forum=72&highlight=nwmouseOn Sat, 2004-08-14 at 20:51, Ryan C. Gordon wrote:

I am not sure if this difference has something to do with SDL, but I
belive it has because I know that SDL have a system to deal with mouse
cursor. If it is true, I would like to suggest the maintainers of the
SDL Lib to increase the priority of the mouse cursor, so you would make
happy another Brazilian who could play his game in home :slight_smile: .

(I don’t know exactly what NWN does, but) you can have SDL use the X11
cursor, which isn’t bound to your game’s framerate, but this is specific
to the application and not SDL.

Many games hide the system (X11) cursor and render a textured quad
in-game for the mouse cursor.


Alan.

“One must never be purposelessnessnesslessness.”
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20040815/0b9734f9/attachment.pgp