thanpv-lifortevn / angleproject

Automatically exported from code.google.com/p/angleproject
Other
0 stars 0 forks source link

Add a perf test for pure draw call overhead #955

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
We can use the D3D NULL drivers to benchmark pure draw overhead on the D3D 
back-ends. Will have to investigate the possiblity of doing so with the GL 
back-end.

Original issue reported on code.google.com by jmad...@chromium.org on 23 Mar 2015 at 3:04

GoogleCodeExporter commented 9 years ago
Project: angle/angle
Branch : master
Author : Jamie Madill <jmadill@chromium.org>
Commit : 19a43dbe65afaf80927fba5aa96396215168e171

Code-Review  0 : Brandon Jones, Jamie Madill
Code-Review  +2: Geoff Lang
Verified     0 : Brandon Jones, Geoff Lang
Verified     +1: Jamie Madill
Commit Queue   : Chumped
Change-Id      : I449e63177b48afd1559c36244de0bc252814e813
Reviewed-at    : https://chromium-review.googlesource.com/262208

Add a perf test for draw call overhead.

These perf tests use the D3D NULL renderers to measure pure CPU
time, with no GPU limitations. Also fix our D3D9 SwapChain code
to skip creating a SwapChain for NULLREF D3D9 devices, and the
vertex decl code to reinitialize the formats when finding a
mismatch with the previous value.

BUG=angleproject:955

src/libANGLE/renderer/d3d/d3d9/Renderer9.h
src/libANGLE/renderer/d3d/d3d9/SwapChain9.cpp
src/libANGLE/renderer/d3d/d3d9/formatutils9.cpp
src/tests/perf_tests/ANGLEPerfTest.cpp
src/tests/perf_tests/ANGLEPerfTest.h
src/tests/perf_tests/BufferSubData.cpp
src/tests/perf_tests/PointSprites.cpp
src/tests/perf_tests/TexSubImage.cpp
util/EGLWindow.h

Original comment by bugdro...@chromium.org on 25 Mar 2015 at 2:47

GoogleCodeExporter commented 9 years ago
Project: angle/angle
Branch : master
Author : Geoff Lang <geofflang@chromium.org>
Commit : 7afd461709b208100f5195f1b4944ca890c8c9ca

Code-Review  0 : Geoff Lang
Code-Review  +2: Jamie Madill
Verified     0 : Jamie Madill
Verified     +1: Geoff Lang
Commit Queue   : Chumped
Change-Id      : I8223349622531c8fff7c7cd45bdf4754d7619ae2
Reviewed-at    : https://chromium-review.googlesource.com/263062

Disable vsync for perf tests and don't report the total time.

BUG=angleproject:955

src/tests/perf_tests/ANGLEPerfTest.cpp

Original comment by bugdro...@chromium.org on 31 Mar 2015 at 3:31

GoogleCodeExporter commented 9 years ago

Original comment by jmad...@chromium.org on 1 Apr 2015 at 5:32