[Gambas-user] sdl Draw event overhead is killing frame rate

Benoît Minisini gambas at ...1...
Mon Jan 27 00:49:45 CET 2014


Le 20/01/2014 05:28, Kevin Fishburne a écrit :
>
> It must provoke some acid reflux deep within the bowels of SDL. :) I
> don't know...it's damn strange for sure. I also find it strange that the
> FPS is around 500, but when you minimize the window it jumps to over
> 2000. Even if it's just refreshing the window itself, you'd think on a
> modern system with hardware acceleration it would be faster than that.
>
> I attached my test app. It has all the OpenGL commands and variable
> declarations commented out, so it's running just an empty SDL loop with
> the frame rate calculation and console printout. Feel free to test the
> two revisions yourself to see the difference.
>
> Just thought of something...how can you change the current font SDL is
> using? I wonder if changing it from the bitmap to an arbitrary TTF (even
> though no text is being rendered) would make a difference?
>

I solve my FPS problem on Intel GPU with the driconf program (that is 
buggy) and that link:

https://wiki.archlinux.org/index.php/Intel_Graphics

A flag in the "~/.drirc" file allowed me to disable automatic VSYNC, and 
now my SDL programs go to the maximum speed.

I don't know which GUI driver you use exactly, but I suggest you look in 
that direction.

Regards,

-- 
Benoît Minisini




More information about the User mailing list