mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
Add buffer stats to love.graphics.getStats.
- Add 'buffers' field, to count the total number of graphics buffer objects. - Add 'buffermemory' field, to estimate the total number of bytes of graphics memory used by all buffers.
This commit is contained in:
@@ -2422,8 +2422,10 @@ Graphics::Stats Graphics::getStats() const
|
||||
stats.drawCallsBatched = drawCallsBatched;
|
||||
stats.textures = Texture::textureCount;
|
||||
stats.fonts = Font::fontCount;
|
||||
stats.buffers = Buffer::bufferCount;
|
||||
stats.textureMemory = Texture::totalGraphicsMemory;
|
||||
|
||||
stats.bufferMemory = Buffer::totalGraphicsMemory;
|
||||
|
||||
return stats;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user