summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/MainBase.cpp
diff options
context:
space:
mode:
authordegasus <wickmarkus@web.de>2014-01-09 18:37:59 +0100
committerdegasus <wickmarkus@web.de>2014-01-09 18:37:59 +0100
commiteb310cbd1d93e1c0c7c94e2571e578aef7a04128 (patch)
treedb757a35ad45f5dda3f553bf1d304e33ac7ec2f1 /Source/Core/VideoCommon/MainBase.cpp
parent45f74840d6a32f278fedbe0381e7db1127669ce5 (diff)
VideoCommon: disable efb access + perf querys on cph thread
The usual way to handle this kind of request is to rise a flag which the gpu thread polls. The gpu thread itself either generates the result or just write zeros if disabled. After this, it rise another flag which says that this work is done. So if disabled, we still have the cpu-gpu round trip time. This commit just returns 0 on the cpu thread instead of playing ping pong...
Diffstat (limited to 'Source/Core/VideoCommon/MainBase.cpp')
-rw-r--r--Source/Core/VideoCommon/MainBase.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/MainBase.cpp b/Source/Core/VideoCommon/MainBase.cpp
index 320f2d6752..7d81e4a10a 100644
--- a/Source/Core/VideoCommon/MainBase.cpp
+++ b/Source/Core/VideoCommon/MainBase.cpp
@@ -147,7 +147,7 @@ void VideoFifo_CheckEFBAccess()
u32 VideoBackendHardware::Video_AccessEFB(EFBAccessType type, u32 x, u32 y, u32 InputData)
{
- if (s_BackendInitialized)
+ if (s_BackendInitialized && g_ActiveConfig.bEFBAccessEnable)
{
s_accessEFBArgs.type = type;
s_accessEFBArgs.x = x;
@@ -193,6 +193,11 @@ void VideoFifo_CheckPerfQueryRequest()
u32 VideoBackendHardware::Video_GetQueryResult(PerfQueryType type)
{
+ if(!g_perf_query->ShouldEmulate())
+ {
+ return 0;
+ }
+
// TODO: Is this check sane?
if (!g_perf_query->IsFlushed())
{