Running in Windows, my game is getting about 20fps, but it seems the
cursor is also getting 20fps. I always thought the cursor was running
in a different thread and was able to move across the screen
independent of SDL’s final blit? At least that has been my experience
with other DirectX full screen apps.
Is this a video card issue or a SDL issue?
I am not using HW surfaces or FLIP.
If I turn on flipping, the I have no cursor and the frame rate goes to
4fps (but that is another issue, not really my questions here, unless
they are related).
Tankko
Tankko Omaskio wrote:
Running in Windows, my game is getting about 20fps, but it seems the
cursor is also getting 20fps. I always thought the cursor was running
in a different thread and was able to move across the screen
independent of SDL’s final blit? At least that has been my experience
with other DirectX full screen apps.
I froget exactly why this is, but try adding this flag to your SDL_Init
call:
SDL_INIT_EVENTTHREAD
As a warning, last I heard ( many ages ago ), this wasn’t implemented
for Windows, so this might not help at all. In any case, this is
supposed to run the event manager in a seperate thread, which in turn
should allow the cursor to move independant of your normal framerate.
Anyways, just something to try.