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

2014-01-27 Thread Benoît Minisini
Le 27/01/2014 02:55, Kevin Fishburne a écrit : On 01/26/2014 06:49 PM, Benoît Minisini wrote: 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

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

2014-01-27 Thread Benoît Minisini
Le 27/01/2014 13:43, Benoît Minisini a écrit : It's difficult for me to test as we have differents cards. But as soon as we are sure that the CPU core running the Gambas program is 10O% busy, (i.e. there is no vsync), we can run the program with valgrind and use kcachegrind to detect which

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

2014-01-27 Thread Benoît Minisini
Le 27/01/2014 13:52, Benoît Minisini a écrit : Le 27/01/2014 13:43, Benoît Minisini a écrit : It's difficult for me to test as we have differents cards. But as soon as we are sure that the CPU core running the Gambas program is 10O% busy, (i.e. there is no vsync), we can run the program with

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

2014-01-26 Thread Benoît Minisini
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

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

2014-01-26 Thread Kevin Fishburne
On 01/26/2014 06:49 PM, Benoît Minisini wrote: 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

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

2014-01-19 Thread Kevin Fishburne
On 01/17/2014 11:00 PM, Kevin Fishburne wrote: On 01/16/2014 05:07 PM, Benoît Minisini wrote: Le 16/01/2014 22:40, Benoît Minisini a écrit : Le 16/01/2014 06:03, Kevin Fishburne a écrit : The results are in, and they don't tell me much. :( I attached the updated test project, which includes

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

2014-01-19 Thread Benoît Minisini
Le 19/01/2014 09:11, Kevin Fishburne a écrit : On 01/17/2014 11:00 PM, Kevin Fishburne wrote: On 01/16/2014 05:07 PM, Benoît Minisini wrote: Le 16/01/2014 22:40, Benoît Minisini a écrit : Le 16/01/2014 06:03, Kevin Fishburne a écrit : The results are in, and they don't tell me much. :( I

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

2014-01-17 Thread Kevin Fishburne
On 01/16/2014 05:07 PM, Benoît Minisini wrote: Le 16/01/2014 22:40, Benoît Minisini a écrit : Le 16/01/2014 06:03, Kevin Fishburne a écrit : The results are in, and they don't tell me much. :( I attached the updated test project, which includes the test results in comments at the top. They

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

2014-01-16 Thread Benoît Minisini
Le 16/01/2014 06:03, Kevin Fishburne a écrit : The results are in, and they don't tell me much. :( I attached the updated test project, which includes the test results in comments at the top. They are: ' No Stop Event | No Geometry | Binary NVIDIA driver | 236 FPS ' Stop Event| No

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

2014-01-16 Thread Benoît Minisini
Le 16/01/2014 22:40, Benoît Minisini a écrit : Le 16/01/2014 06:03, Kevin Fishburne a écrit : The results are in, and they don't tell me much. :( I attached the updated test project, which includes the test results in comments at the top. They are: ' No Stop Event | No Geometry | Binary

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

2014-01-14 Thread Kevin Fishburne
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

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

2014-01-14 Thread Benoît Minisini
Le 15/01/2014 03:33, Kevin Fishburne a écrit : 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

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

2014-01-14 Thread Kevin Fishburne
On 01/14/2014 10:19 PM, Benoît Minisini wrote: Le 15/01/2014 03:33, Kevin Fishburne a écrit : 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