Commit d15c0165 authored by nduca@chromium.org's avatar nduca@chromium.org

Disable 5ms flusher on Android to reduce kernel thrashing.


Review URL: http://codereview.chromium.org/8956001

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114688 0039d316-1c4b-4281-b951-d872f2087c98
parent 838e2bf5
...@@ -199,11 +199,15 @@ void CommandBufferHelper::WaitForAvailableEntries(int32 count) { ...@@ -199,11 +199,15 @@ void CommandBufferHelper::WaitForAvailableEntries(int32 count) {
if (pending > limit) { if (pending > limit) {
Flush(); Flush();
} else if (commands_issued_ % kCommandsPerFlushCheck == 0) { } else if (commands_issued_ % kCommandsPerFlushCheck == 0) {
#if !defined(OS_ANDROID)
// Allow this command buffer to be pre-empted by another if a "reasonable" // Allow this command buffer to be pre-empted by another if a "reasonable"
// amount of work has been done. // amount of work has been done. On highend machines, this reduces the
// latency of GPU commands. However, on Android, this can cause the
// kernel to thrash between generating GPU commands and executing them.
clock_t current_time = clock(); clock_t current_time = clock();
if (current_time - last_flush_time_ > kFlushDelay * CLOCKS_PER_SEC) if (current_time - last_flush_time_ > kFlushDelay * CLOCKS_PER_SEC)
Flush(); Flush();
#endif
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment