• James Darpinian's avatar
    GPU: Remove transfer buffer autoflushing. · dcfaac01
    James Darpinian authored
    This is change #2 of 3 reducing context switching during WebGL
    rendering. On tiled rendering GPUs context switches are slow and can
    even cause multisampling artifacts. Every time the command buffer is
    flushed, a context switch is possible.
    
    Before, the transfer buffer would flush the command buffer after an
    arbitrary number of bytes were sent. This change removes that threshold.
    Any performance benefit of early flushing is killed by the additional
    context switching.
    
    Bug: 828363,835353
    Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel
    Change-Id: I8f71668d4b976332820d290868282d41286ab4fe
    Reviewed-on: https://chromium-review.googlesource.com/1077568
    Commit-Queue: James Darpinian <jdarpinian@chromium.org>
    Reviewed-by: default avatarAntoine Labour <piman@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#563404}
    dcfaac01
implementation_base.cc 11.3 KB