Does anyone know why SDL_CreateRenderer takes so long to execute? I’ve got some pretty serious hardware, and it still takes about half a second for it to finish. This may not sound like much, but it’s pretty noticeable when you’re instantiating multiple SDL_Windows at the same time, on the same form. (I’m using the OpenGL renderer, but it doesn’t seem to make much of a difference which one I pick. They all take about half a second to set up.)
What platform are you using? Is it different if you pick a different
renderer? Have you tried profiling it?On Sat, Oct 3, 2009 at 7:29 AM, Mason Wheeler wrote:
Does anyone know why SDL_CreateRenderer takes so long to execute? ?I’ve got some pretty serious hardware, and it still takes about half a second for it to finish. ?This may not sound like much, but it’s pretty noticeable when you’re instantiating multiple SDL_Windows at the same time, on the same form. ?(I’m using the OpenGL renderer, but it doesn’t seem to make much of a difference which one I pick. ?They all take about half a second to set up.)
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
–
-Sam Lantinga, Founder and President, Galaxy Gameworks LLC
I’m on Vista 64. It tends to be equally slow for every platform. And I don’t have any tools for profiling C. Any idea where I could find one?>----- Original Message ----
From: Sam Lantinga
Subject: Re: [SDL] SDL_CreateRenderer runs slowlyWhat platform are you using? Is it different if you pick a different
renderer? Have you tried profiling it?
On Sat, Oct 3, 2009 at 7:29 AM, Mason Wheeler <@Mason_Wheeler> wrote:
Does anyone know why SDL_CreateRenderer takes so long to execute? I’ve got some pretty serious hardware, and it still takes about half a second for it to finish. This may not sound like much, but it’s pretty noticeable when you’re instantiating multiple SDL_Windows at the same time, on the same form. (I’m using the OpenGL renderer, but it doesn’t seem to make much of a difference which one I pick. They all take about half a second to set up.)
There are some commercial packages, but you can just edit the SDL
source code and add debug output with timestamps. The two most likely
places to take time are loading the OpenGL library and creating a
context.
SDL actually does this twice, once to see whether OpenGL is available,
and once to actually create your renderer.On Sat, Oct 3, 2009 at 9:24 AM, Mason Wheeler wrote:
I’m on Vista 64. ?It tends to be equally slow for every platform. ?And I don’t have any tools for profiling C. ?Any idea where I could find one?
----- Original Message ----
From: Sam Lantinga <@slouken>
Subject: Re: [SDL] SDL_CreateRenderer runs slowlyWhat platform are you using? ?Is it different if you pick a different
renderer? ?Have you tried profiling it?On Sat, Oct 3, 2009 at 7:29 AM, Mason Wheeler wrote:
Does anyone know why SDL_CreateRenderer takes so long to execute? ?I’ve got some pretty serious hardware, and it still takes about half a second for it to finish. ?This may not sound like much, but it’s pretty noticeable when you’re instantiating multiple SDL_Windows at the same time, on the same form. ?(I’m using the OpenGL renderer, but it doesn’t seem to make much of a difference which one I pick. ?They all take about half a second to set up.)
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
–
-Sam Lantinga, Founder and President, Galaxy Gameworks LLC