Thanks guys, appreciate your help. So to conclude the problem, I finally found the stupid reason, actually it was because somebody changed the webgl context configuration by adding "antialias" as true, which caused the pixel fill rate too high and hang up the GPU rendering. As we are also enabling retina screen adaptation on Mac, the original canvas is kind of scaled up to have 4 * 4 times pixels, which is huge.
Still an odd behavior during the investigation, I upgraded Chrome from 62.0.3202.94 to 63.0.3239.84, and the performance is even worse, seems like Chrome changed the antialias behavior. Now the problem is solved, just want to conclude that I was miss leading by two informations, 1. Scavenge allocation failure log 2. GPU ClientWait in Chrome tracing, this makes me thought the GPU was actually free and waiting for the previous frame Again, thanks for all the help Huabin On Wednesday, December 6, 2017 at 11:05:39 AM UTC+8, Ben Noordhuis wrote: > > On Wed, Dec 6, 2017 at 3:55 AM, Huabin Ling <[email protected] > <javascript:>> wrote: > > Thanks for the informations Michael > > > > I attached a saved trace record here, and I notice that in each frame > there is a relatively long "CommandBufferProxyImpl::WaitForToken", which > doesn't happen when the sprite number is low. You are probably right that > scavenge process may be not related. > > > > > > But I'm a little confused, trace tool doesn't seem to capture any CPU > level usage by my program, so I'm not sure how the renderer waitForToken is > related to my logic code. > > > https://cs.chromium.org/chromium/src/gpu/ipc/client/command_buffer_proxy_impl.cc?type=cs&q=CommandBufferProxyImpl::WaitForToken&l=319 > > > Basically, it looks like your code is waiting for the GPU. > -- -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
