Very slow rendering |
Re: Very slow rendering |
nmapp
|
So this is interesting.
I wrapped the body of my main rendering function in a loop, that executes it 1000 times. Most of the calls, I see acceptable framerate - 400, 500 fps (2-2.5 msecs per iteration of the loop). But sometimes - I can't determine what triggers it - the wramerate drops to 59-60 fps (and no lower). It's as if the vsync randomly turns on. I'm pretty sure that nothing in my code limits the framerate... any ideas? |
|||||||||||
|
Re: Very slow rendering |
nmapp
|
Can someone at least tell me just how long - in milliseconds or nanoseconds - should rendering take? I'm talking about the call to RenderPresent only. For example, on Windows machines? I just don't know what to expect. Maybe SDL2 is simply not a good choice for this particular application. Although SDL1 works just fine... I tried SDL_RENDERER_SOFTWARE (and many other things), that didn't make any difference. So, is 5 milliseconds normal? 10?
|
|||||||||||
|
Very slow rendering |
alabouza
|
I have an equivalent situation, previously presented in this forum. Very good refresh rate with SDL1 and slower rate with SDL 2.0x. My applications run under Windows.
Armando On Wed, Jun 8, 2016 at 3:31 AM, nmapp wrote:
|
|||||||||||||
|