We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 314

Summary: The frame rate fall down !!!
Product: SDL Reporter: Vincent Vansuyt <poubelle>
Component: videoAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: major    
Priority: P2    
Version: 1.2.10   
Hardware: x86   
OS: Windows (XP)   

Description Vincent Vansuyt 2006-08-30 04:24:47 UTC
Hello,

Sorry for my english, I'm french.
I use SDL 1.2.9 with openGL and my graphic program works at 60 fps with a GeForce 2 card.

When I download and install 1.2.10 (with devCpp 4.9.9.2) without changing my source code, my frame rate fall down to 37 fps !!!

WHY ?!

P.S. : My OS is Windows 2000 pro and my compiler is MingW32 3.4.2.
Comment 1 Ryan C. Gordon 2006-08-30 11:40:18 UTC
I think this was when we switched from DirectX to Windib for stability issues. Too many video drivers had buggy DirectDraw implementations, causing system crashes, etc.

If it works for you, though, you can force the DirectX video target still, by adding this before your call to SDL_Init()...

  SDL_putenv("SDL_VIDEODRIVER=directx");

Also, if you are upgrading SDL, you should use the latest release: 1.2.11 is the latest now, not 1.2.10.

--ryan.

Comment 2 Vincent Vansuyt 2006-08-30 12:05:40 UTC
(In reply to comment #1)
> I think this was when we switched from DirectX to Windib for stability issues.
> Too many video drivers had buggy DirectDraw implementations, causing system
> crashes, etc.
> 
> If it works for you, though, you can force the DirectX video target still, by
> adding this before your call to SDL_Init()...
> 
>   SDL_putenv("SDL_VIDEODRIVER=directx");
> 
> Also, if you are upgrading SDL, you should use the latest release: 1.2.11 is
> the latest now, not 1.2.10.
> 
> --ryan.
> 

Thanks for your answer !

But... I use OpenGL, not DirectX...
Why I does use "SDL_putenv("SDL_VIDEODRIVER=directx");" ?
The command "SDL_putenv("SDL_VIDEODRIVER=opengl");" exist ?