Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize time spent in GPU driver for GPU cache updates. #1390

Merged
merged 1 commit into from Jun 20, 2017

Commits on Jun 16, 2017

  1. Optimize time spent in GPU driver for GPU cache updates.

    We keep a shadow copy of the GPU cache data in the render thread.
    After all updates (patches) have been applied for this frame, scan
    the rows of the texture for rows that have been modified.
    
    Upload each dirty row to the GPU via a PBO to ensure that there
    are no CPU-side stalls.
    
    In the future, there's several more optimizations that can be made:
     * Batch consecutive row updates into a single PBO / upload call.
     * Perhaps track start/end of each row, to avoid a full row update for small changes.
    gw3583 committed Jun 16, 2017
You can’t perform that action at this time.