SDL_RenderCopy very slow on Lumia 520 Windows Phone 8.1 |
hardcoredaniel
Guest
|
I found that the change also bumps the frame rate from 30 to 60 fps when rendering with vsync enabled on the Lumia 550. If there are no downsides, shoudn't the change be applied in general?
---------- Původnà zpráva ---------- Od: Sylvain Becker Komu: SDL Development List Datum: 28. 1. 2016 8:48:23 Předmět: Re: [SDL] SDL_RenderCopy very slow on Lumia 520 Windows Phone 8.1
|
|||||||||||||||||
|
SDL_RenderCopy very slow on Lumia 520 Windows Phone 8.1 |
hardcoredaniel
Guest
|
I found that the change also bumps the frame rate from 30 to 60 fps when rendering with vsync enabled on the Lumia 550. If there are no downsides, shoudn't the change be applied in general?
---------- Původnà zpráva ---------- Od: Sylvain Becker Komu: SDL Development List Datum: 28. 1. 2016 8:48:23 Předmět: Re: [SDL] SDL_RenderCopy very slow on Lumia 520 Windows Phone 8.1
|
|||||||||||||||||
|
Re: SDL_RenderCopy very slow on Lumia 520 Windows Phone 8.1 |
Re: SDL_RenderCopy very slow on Lumia 520 Windows Phone 8.1 |
DLudwig
|
I've been giving this a bit more thought. I like the idea of being able to use triple-buffering, but am not entirely sold on enabling it in all cases, for all apps, as it would use up more memory. What about an SDL_HINT (set via a call to SDL_SetHint()) to adjust the D3D11 renderer's buffer-count? -- David L. |
|||||||||||||
|
SDL_RenderCopy very slow on Lumia 520 Windows Phone 8.1 |
slvn
|
Hello,
Just wanted to remind my investigations when using the triple buffering: I saw improvements with the test I sent you before, that draw full-speed a square moving in one direction. With double-buffering, line was like "interrupted", and the squares were scattered as packet. Like if a function was sometimes a little bit more blocking ? or like a vsync missed ? (but the gap between two packages seems to be more than a vsync). Maybe it could also be some GC, or some thread underneath ... With triple-buffering, line was smooth and homogeneous. Please give a try to this test-case if you haven't tested yet. I remind also what I tested: My old WP8 (2-buffering) app that was running smoothly on WP phone, still ran smoothly after the phone upgraded to Win10. As soon as, I re-compiled the app for Win10 (with some new SDL2 code), and tested it on win10 phone, it started to be non-smooth. After adding 3-buffering, it became smooth again. Could the V-Sync be not enable before ? Could the app be automatically promoted to 3-buffering before ? (Maybe there is a way to query buffering/vsync ?) Cheers, Sylvain On 12 June 2016 at 23:57, DLudwig wrote:
-- Sylvain Becker |
|||||||||||||
|
SDL_RenderCopy very slow on Lumia 520 Windows Phone 8.1 |
hardcoredaniel
Guest
|
I like the idea of a hint, so that people can make a choice and trade memory for FPS. Although some years from now we probably won't mind the additional memory anymore.
---------- Původnà zpráva ---------- Od: DLudwig Komu: Datum: 12. 6. 2016 23:58:12 Předmět: Re: [SDL] SDL_RenderCopy very slow on Lumia 520 Windows Phone 8.1
|
|||||||||||||
|
SDL_RenderCopy very slow on Lumia 520 Windows Phone 8.1 |
slvn
|
We are already some years, from some years, from caring about additional memory
I agree the hint is the fastest way to please anyone and to be more flexible. But that's one more legacy hint ... Maybe, a little bit more investigation before choosing the hint solution ... btw, there is a VC2015 RC 3, could this have some positive effect ? On 13 June 2016 at 09:40, hardcoredaniel wrote:
-- Sylvain Becker |
|||||||||||||||
|