Re: [Mesa-dev] [PATCH] st/dri: decrease input lag by syncing sooner in SwapBuffers

2019-05-26 Thread Axel Davy
hi, I haven't done enough testing to have a full understanding of the issue, but it seems there could be a regression with gallium nine. One user is reporting on irc huge slowdowns with d3d8 games (using the d3d8to9 wrapper) when using vsync. Reverting fixes the issues. I don't know

Re: [Mesa-dev] [PATCH] st/dri: decrease input lag by syncing sooner in SwapBuffers

2019-05-01 Thread Marek Olšák
If there is no other feedback, I'll push this tomorrow. Marek On Mon, Apr 29, 2019 at 6:12 PM Marek Olšák wrote: > This patch might improve performance, because less submitted unfinished > work means less used memory by the unfinished work. > > Marek > > On Mon, Apr 29, 2019 at 11:07 AM Michel

Re: [Mesa-dev] [PATCH] st/dri: decrease input lag by syncing sooner in SwapBuffers

2019-04-29 Thread Marek Olšák
This patch might improve performance, because less submitted unfinished work means less used memory by the unfinished work. Marek On Mon, Apr 29, 2019 at 11:07 AM Michel Dänzer wrote: > On 2019-04-27 6:13 p.m., Rob Clark wrote: > > On Thu, Apr 25, 2019 at 7:06 PM Marek Olšák wrote: > >> > >>

Re: [Mesa-dev] [PATCH] st/dri: decrease input lag by syncing sooner in SwapBuffers

2019-04-29 Thread Michel Dänzer
On 2019-04-27 6:13 p.m., Rob Clark wrote: > On Thu, Apr 25, 2019 at 7:06 PM Marek Olšák wrote: >> >> From: Marek Olšák >> >> It's done by: >> - decrease the number of frames in flight by 1 >> - flush before throttling in SwapBuffers >> (instead of wait-then-flush, do flush-then-wait) >> >> The

Re: [Mesa-dev] [PATCH] st/dri: decrease input lag by syncing sooner in SwapBuffers

2019-04-27 Thread Marek Olšák
The input lag is maxframes*1000/fps ms. For 10 fps and 2 frames, the lag is 200 ms. You might also say that it's the amount of time it will take the GPU to catch up with the CPU after fence_finish returns. Hopefully that clears up performance concerns. Marek On Sat, Apr 27, 2019, 4:07 PM Axel

Re: [Mesa-dev] [PATCH] st/dri: decrease input lag by syncing sooner in SwapBuffers

2019-04-27 Thread Axel Davy
On 27/04/2019 21:02, Rob Clark wrote: On Sat, Apr 27, 2019 at 9:52 AM Axel Davy wrote: On 27/04/2019 18:13, Rob Clark wrote: On Thu, Apr 25, 2019 at 7:06 PM Marek Olšák wrote: From: Marek Olšák It's done by: - decrease the number of frames in flight by 1 - flush before throttling in

Re: [Mesa-dev] [PATCH] st/dri: decrease input lag by syncing sooner in SwapBuffers

2019-04-27 Thread Rob Clark
On Sat, Apr 27, 2019 at 9:52 AM Axel Davy wrote: > > On 27/04/2019 18:13, Rob Clark wrote: > > On Thu, Apr 25, 2019 at 7:06 PM Marek Olšák wrote: > >> From: Marek Olšák > >> > >> It's done by: > >> - decrease the number of frames in flight by 1 > >> - flush before throttling in SwapBuffers > >>

Re: [Mesa-dev] [PATCH] st/dri: decrease input lag by syncing sooner in SwapBuffers

2019-04-27 Thread Axel Davy
On 27/04/2019 18:13, Rob Clark wrote: On Thu, Apr 25, 2019 at 7:06 PM Marek Olšák wrote: From: Marek Olšák It's done by: - decrease the number of frames in flight by 1 - flush before throttling in SwapBuffers (instead of wait-then-flush, do flush-then-wait) The improvement is apparent

Re: [Mesa-dev] [PATCH] st/dri: decrease input lag by syncing sooner in SwapBuffers

2019-04-27 Thread Rob Clark
On Thu, Apr 25, 2019 at 7:06 PM Marek Olšák wrote: > > From: Marek Olšák > > It's done by: > - decrease the number of frames in flight by 1 > - flush before throttling in SwapBuffers > (instead of wait-then-flush, do flush-then-wait) > > The improvement is apparent with Unigine Heaven. > >

Re: [Mesa-dev] [PATCH] st/dri: decrease input lag by syncing sooner in SwapBuffers

2019-04-27 Thread Axel Davy
On 26/04/2019 20:40, Marek Olšák wrote: On Fri, Apr 26, 2019 at 12:56 PM Axel Davy > wrote: On 26/04/2019 10:08, Michel Dänzer wrote: > On 2019-04-26 4:06 a.m., Marek Olšák wrote: >> From: Marek Olšák mailto:marek.ol...@amd.com>> >> >> It's done

Re: [Mesa-dev] [PATCH] st/dri: decrease input lag by syncing sooner in SwapBuffers

2019-04-26 Thread Marek Olšák
On Fri, Apr 26, 2019 at 12:56 PM Axel Davy wrote: > On 26/04/2019 10:08, Michel Dänzer wrote: > > On 2019-04-26 4:06 a.m., Marek Olšák wrote: > >> From: Marek Olšák > >> > >> It's done by: > >> - decrease the number of frames in flight by 1 > >> - flush before throttling in SwapBuffers > >>

Re: [Mesa-dev] [PATCH] st/dri: decrease input lag by syncing sooner in SwapBuffers

2019-04-26 Thread Marek Olšák
On Fri, Apr 26, 2019 at 4:08 AM Michel Dänzer wrote: > On 2019-04-26 4:06 a.m., Marek Olšák wrote: > > From: Marek Olšák > > > > It's done by: > > - decrease the number of frames in flight by 1 > > - flush before throttling in SwapBuffers > > (instead of wait-then-flush, do flush-then-wait) >

Re: [Mesa-dev] [PATCH] st/dri: decrease input lag by syncing sooner in SwapBuffers

2019-04-26 Thread Axel Davy
On 26/04/2019 10:08, Michel Dänzer wrote: On 2019-04-26 4:06 a.m., Marek Olšák wrote: From: Marek Olšák It's done by: - decrease the number of frames in flight by 1 - flush before throttling in SwapBuffers (instead of wait-then-flush, do flush-then-wait) The improvement is apparent with

Re: [Mesa-dev] [PATCH] st/dri: decrease input lag by syncing sooner in SwapBuffers

2019-04-26 Thread Michel Dänzer
On 2019-04-26 4:06 a.m., Marek Olšák wrote: > From: Marek Olšák > > It's done by: > - decrease the number of frames in flight by 1 > - flush before throttling in SwapBuffers > (instead of wait-then-flush, do flush-then-wait) > > The improvement is apparent with Unigine Heaven. > >