All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 50616] New: glClear occasionally taking >60ms
@ 2012-06-02 13:29 bugzilla-daemon
  2012-06-02 13:32 ` [Bug 50616] " bugzilla-daemon
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: bugzilla-daemon @ 2012-06-02 13:29 UTC (permalink / raw)
  To: dri-devel

https://bugs.freedesktop.org/show_bug.cgi?id=50616

             Bug #: 50616
           Summary: glClear occasionally taking >60ms
    Classification: Unclassified
           Product: Mesa
           Version: 8.0
          Platform: x86-64 (AMD64)
        OS/Version: Linux (All)
            Status: NEW
          Severity: minor
          Priority: medium
         Component: Drivers/Gallium/r600
        AssignedTo: dri-devel@lists.freedesktop.org
        ReportedBy: curaga@operamail.com


I have a test app that draws 65k point sprites, apitrace:
http://kiwi6.com/file/0c0512r1no (980kb).

Apitrace says that on average glClear takes 28ms, and many clear calls take
over 60ms. Surely it shouldn't take that long?

If it were because of tearing prevention, it should take at most 16ms (1/60Hz).


--

vblank_mode=0 had no change, oprofile says Mesa takes less than 2% cpu.
Latencytop shows radeon_fence_wait taking between 3 and 5ms during rendering.

--

Mesa 8.0.3
Linux 3.2.17
HD4350 / r600g

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 50616] glClear occasionally taking >60ms
  2012-06-02 13:29 [Bug 50616] New: glClear occasionally taking >60ms bugzilla-daemon
@ 2012-06-02 13:32 ` bugzilla-daemon
  2012-06-03 15:08 ` bugzilla-daemon
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2012-06-02 13:32 UTC (permalink / raw)
  To: dri-devel

https://bugs.freedesktop.org/show_bug.cgi?id=50616

--- Comment #1 from Lauri Kasanen <curaga@operamail.com> 2012-06-02 06:32:41 PDT ---
http://kiwi6.com/file/95a4z148f2 (550kb)

The timing output from apitrace.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 50616] glClear occasionally taking >60ms
  2012-06-02 13:29 [Bug 50616] New: glClear occasionally taking >60ms bugzilla-daemon
  2012-06-02 13:32 ` [Bug 50616] " bugzilla-daemon
@ 2012-06-03 15:08 ` bugzilla-daemon
  2012-06-03 15:22 ` bugzilla-daemon
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2012-06-03 15:08 UTC (permalink / raw)
  To: dri-devel

https://bugs.freedesktop.org/show_bug.cgi?id=50616

--- Comment #2 from Alex Deucher <agd5f@yahoo.com> 2012-06-03 08:08:04 PDT ---
Does setting:
Option "SwapbuffersWait" "false"
in the device section of your xorg.conf help?

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 50616] glClear occasionally taking >60ms
  2012-06-02 13:29 [Bug 50616] New: glClear occasionally taking >60ms bugzilla-daemon
  2012-06-02 13:32 ` [Bug 50616] " bugzilla-daemon
  2012-06-03 15:08 ` bugzilla-daemon
@ 2012-06-03 15:22 ` bugzilla-daemon
  2012-06-05 10:46 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2012-06-03 15:22 UTC (permalink / raw)
  To: dri-devel

https://bugs.freedesktop.org/show_bug.cgi?id=50616

--- Comment #3 from Lauri Kasanen <curaga@operamail.com> 2012-06-03 08:22:27 PDT ---
No, it does not.

It improved the average a tiny bit, but the long ones were still there.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 50616] glClear occasionally taking >60ms
  2012-06-02 13:29 [Bug 50616] New: glClear occasionally taking >60ms bugzilla-daemon
                   ` (2 preceding siblings ...)
  2012-06-03 15:22 ` bugzilla-daemon
@ 2012-06-05 10:46 ` bugzilla-daemon
  2012-06-05 18:42 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2012-06-05 10:46 UTC (permalink / raw)
  To: dri-devel

https://bugs.freedesktop.org/show_bug.cgi?id=50616

--- Comment #4 from Michel Dänzer <michel@daenzer.net> 2012-06-05 03:46:52 PDT ---
(In reply to comment #3)
> It improved the average a tiny bit, but the long ones were still there.

Did you try it with vblank_mode=0 as well?


Calling glFinish() instead of glFlush() before glXSwapBuffers() might give a
better idea of where the time is actually spent.


P.S. Please attach files here directly instead of referencing external sites.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 50616] glClear occasionally taking >60ms
  2012-06-02 13:29 [Bug 50616] New: glClear occasionally taking >60ms bugzilla-daemon
                   ` (3 preceding siblings ...)
  2012-06-05 10:46 ` bugzilla-daemon
@ 2012-06-05 18:42 ` bugzilla-daemon
  2012-06-06  9:13 ` bugzilla-daemon
  2012-06-06 11:16 ` bugzilla-daemon
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2012-06-05 18:42 UTC (permalink / raw)
  To: dri-devel

https://bugs.freedesktop.org/show_bug.cgi?id=50616

--- Comment #5 from Lauri Kasanen <curaga@operamail.com> 2012-06-05 11:42:35 PDT ---
OK, with swapbufferswait off, vblank_mode=0, and added glFinish, most of the
time is indeed spent in glFinish, up to 60ms.

glClear takes on average 110 us, with the highest being 2.6ms. Still high, but
not alarmingly so.

I suppose this means the card is just that slow?

PS:
On the files, last time I tried to attach apitrace output here I hit a size
limit...

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 50616] glClear occasionally taking >60ms
  2012-06-02 13:29 [Bug 50616] New: glClear occasionally taking >60ms bugzilla-daemon
                   ` (4 preceding siblings ...)
  2012-06-05 18:42 ` bugzilla-daemon
@ 2012-06-06  9:13 ` bugzilla-daemon
  2012-06-06 11:16 ` bugzilla-daemon
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2012-06-06  9:13 UTC (permalink / raw)
  To: dri-devel

https://bugs.freedesktop.org/show_bug.cgi?id=50616

--- Comment #6 from Michel Dänzer <michel@daenzer.net> 2012-06-06 02:13:30 PDT ---
(In reply to comment #5)
> I suppose this means the card is just that slow?

It means the time is spent for the actual rendering, not just for the clears.
Maybe you can narrow it down further, e.g. by sprinkling glFinish() calls
across more places.

You might get better performance out of the card with a current 3.5-rc kernel
thanks to better tiling setup, but it is a lower end card, so I wouldn't expect
any miracles. :)

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 50616] glClear occasionally taking >60ms
  2012-06-02 13:29 [Bug 50616] New: glClear occasionally taking >60ms bugzilla-daemon
                   ` (5 preceding siblings ...)
  2012-06-06  9:13 ` bugzilla-daemon
@ 2012-06-06 11:16 ` bugzilla-daemon
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2012-06-06 11:16 UTC (permalink / raw)
  To: dri-devel

https://bugs.freedesktop.org/show_bug.cgi?id=50616

Lauri Kasanen <curaga@operamail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |NOTABUG

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-06-06 11:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-02 13:29 [Bug 50616] New: glClear occasionally taking >60ms bugzilla-daemon
2012-06-02 13:32 ` [Bug 50616] " bugzilla-daemon
2012-06-03 15:08 ` bugzilla-daemon
2012-06-03 15:22 ` bugzilla-daemon
2012-06-05 10:46 ` bugzilla-daemon
2012-06-05 18:42 ` bugzilla-daemon
2012-06-06  9:13 ` bugzilla-daemon
2012-06-06 11:16 ` bugzilla-daemon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.