Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Unified Diff: gpu/command_buffer/client/cmd_buffer_helper.cc

Issue 8956001: Disable 5ms flusher on Android to reduce kernel thrashing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/client/cmd_buffer_helper.cc
diff --git a/gpu/command_buffer/client/cmd_buffer_helper.cc b/gpu/command_buffer/client/cmd_buffer_helper.cc
index d43efc343cbea3fcd4a8348c11d57cb097a7bc65..452c00211f41e97dc34f5911908977c8d3bbe8bf 100644
--- a/gpu/command_buffer/client/cmd_buffer_helper.cc
+++ b/gpu/command_buffer/client/cmd_buffer_helper.cc
@@ -179,11 +179,15 @@ void CommandBufferHelper::WaitForAvailableEntries(int32 count) {
if (pending > limit) {
Flush();
} else if (commands_issued_ % kCommandsPerFlushCheck == 0) {
+#if !defined(OS_ANDROID)
// 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 reuces the
no sievers 2011/12/15 01:34:20 typo 'reuces' :)
+ // 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();
if (current_time - last_flush_time_ > kFlushDelay * CLOCKS_PER_SEC)
Flush();
+#endif
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698