Scheduling optimizations and tracing (#2722)

This commit is contained in:
Tim Sylvester
2024-08-15 07:10:08 -07:00
committed by GitHub
parent 5ec97c39fe
commit 4add9ead08
6 changed files with 48 additions and 24 deletions

View File

@@ -2,6 +2,8 @@
#include <mbgl/gl/defines.hpp>
#include <mbgl/gl/context.hpp>
#include <mbgl/gl/uniform_buffer_gl.hpp>
#include <mbgl/util/instrumentation.hpp>
#include <utility>
namespace mbgl {
@@ -298,6 +300,7 @@ public:
// Look for buffers that either have zero living references or equal or under FragmentationThresh
// references. In the latter case, attempt to relocate these allocations to more utilized buffers.
void defragment(const std::shared_ptr<gl::Fence>& fence) override {
MLN_TRACE_FUNC()
if (buffers.size() == 0) {
return;
}