I noticed a month or two ago that the frame rate on the server side of my game went from around 300 to 50. I assumed it was an OpenGL driver issue or that I'd added some really inefficient code. It appears this is not the case, but rather it seems the Draw event raised by opening a screen using SDL is executing some heavy (and hopefully unnecessary) lifting that it wasn't previously.

I've attached a project which is essentially an empty SDL screen draw event loop that calculates a frame rate once per second and outputs the results to the console. Any idea what's going on here? Any empty loop on my reasonably modern PC and brand new video card running the binary NVIDIA drivers should be producing frame rates in the thousands, at least.

--
Kevin Fishburne
Eight Virtues
www: http://sales.eightvirtues.com
e-mail: sa...@eightvirtues.com
phone: (770) 853-6271

Attachment: SDL_Draw_Event_Test.tar.gz
Description: application/gzip

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to