• Show log

    Commit

  • Hash : 24155b13
    Author : Shahbaz Youssefi
    Date : 2021-06-17T18:09:29

    Vulkan: Free DynamicBuffer buffers after dip in allocation size
    
    In a pattern like this:
    
    - allocate 100 bytes
    - allocate 200 bytes
    - allocate 50 bytes
    - allocate 100000000 bytes
    - allocate 100 bytes
    - allocate 200 bytes
    - allocate 50 bytes
    
    The DynamicBuffer class switches to making 100MB allocations even if
    that allocation was a one-off.  A small future allocation would then tie
    up 100MB in memory for future allocations.  Another 100MB is also left
    tied up in the free list.
    
    With this change, if an allocation is made that's less than a quarter of
    the DynamicBuffer's current allocation size, it's taken as a sign that
    the previous large allocation was a one-off and the size is moved back
    to the DynamicBuffer's original initial size.
    
    Bug: b/187757166
    Change-Id: I0c6f00eec7c81298f9dc41a41cc308510ce76623
    Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2971004
    Reviewed-by: Charlie Lao <cclao@google.com>
    Reviewed-by: Jamie Madill <jmadill@chromium.org>
    Commit-Queue: Shahbaz Youssefi <syoussefi@chromium.org>
    

  • Properties

  • Git HTTP https://git.kmx.io/kc3-lang/angle.git
    Git SSH git@git.kmx.io:kc3-lang/angle.git
    Public access ? public
    Description

    A conformant OpenGL ES implementation for Windows, Mac, Linux, iOS and Android.

    Homepage

    Github

    Users
    kc3_lang_org thodg_w www_kmx_io thodg_l thodg thodg_m
    Tags