mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-14 06:18:34 +00:00
Add perf test to d3d_read_viewport.
This commit is contained in:
parent
958886bdd5
commit
ce47241697
@ -232,6 +232,8 @@ void D3DVideo::viewport_info(rarch_viewport &vp)
|
||||
|
||||
bool D3DVideo::read_viewport(uint8_t *buffer)
|
||||
{
|
||||
RARCH_PERFORMANCE_INIT(d3d_read_viewport);
|
||||
RARCH_PERFORMANCE_START(d3d_read_viewport);
|
||||
bool ret = true;
|
||||
IDirect3DSurface9 *target = nullptr;
|
||||
IDirect3DSurface9 *dest = nullptr;
|
||||
@ -284,6 +286,7 @@ bool D3DVideo::read_viewport(uint8_t *buffer)
|
||||
}
|
||||
|
||||
end:
|
||||
RARCH_PERFORMANCE_STOP(d3d_read_viewport);
|
||||
if (target)
|
||||
target->Release();
|
||||
if (dest)
|
||||
|
Loading…
Reference in New Issue
Block a user