From 0d3c5562eb322ed065b1ad770290abc62631a1ff Mon Sep 17 00:00:00 2001 From: "jbates@chromium.org" Date: Fri, 27 Apr 2012 01:22:04 +0000 Subject: Fix framerate jank for accelerated content on windows By delaying the SwapBuffersAck to after Present, we send back the Ack at the rate that D3D Presents finish, which is typically vsync or slower when GPU bound. BUG=125232 TEST=Open WebGL Aquarium, record trace in about:tracing, verify smooth framerate. Review URL: http://codereview.chromium.org/10222029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134201 0039d316-1c4b-4281-b951-d872f2087c98 --- ui/gfx/surface/accelerated_surface_win.cc | 4 ---- 1 file changed, 4 deletions(-) (limited to 'ui/gfx/surface') diff --git a/ui/gfx/surface/accelerated_surface_win.cc b/ui/gfx/surface/accelerated_surface_win.cc index d5c7ddc..8bd8e46 100644 --- a/ui/gfx/surface/accelerated_surface_win.cc +++ b/ui/gfx/surface/accelerated_surface_win.cc @@ -637,10 +637,6 @@ void AcceleratedPresenter::DoPresentAndAcknowledge( if (swap_delay.ToInternalValue()) base::PlatformThread::Sleep(swap_delay); - scoped_completion_runner.Release(); - if (!completion_task.is_null()) - completion_task.Run(true); - { TRACE_EVENT0("surface", "Present"); hr = swap_chain_->Present(&rect, &rect, window_, NULL, 0); -- cgit v1.1