mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Fix Render Info
* Fixed and redone the process to obtain render information from a viewport * Some stats, such as material changes are too difficult to guess on Vulkan, were removed. * Separated visible and shadow stats, which causes confusion. * Texture, buffer and general video memory can be queried now. * Fixed the performance metrics too.
This commit is contained in:
parent
ecf9ea740e
commit
6c55d2aad2
34 changed files with 391 additions and 279 deletions
|
@ -1128,7 +1128,13 @@ public:
|
|||
virtual void submit() = 0;
|
||||
virtual void sync() = 0;
|
||||
|
||||
virtual uint64_t get_memory_usage() const = 0;
|
||||
enum MemoryType {
|
||||
MEMORY_TEXTURES,
|
||||
MEMORY_BUFFERS,
|
||||
MEMORY_TOTAL
|
||||
};
|
||||
|
||||
virtual uint64_t get_memory_usage(MemoryType p_type) const = 0;
|
||||
|
||||
virtual RenderingDevice *create_local_device() = 0;
|
||||
|
||||
|
@ -1200,6 +1206,7 @@ VARIANT_ENUM_CAST(RenderingDevice::PipelineDynamicStateFlags)
|
|||
VARIANT_ENUM_CAST(RenderingDevice::InitialAction)
|
||||
VARIANT_ENUM_CAST(RenderingDevice::FinalAction)
|
||||
VARIANT_ENUM_CAST(RenderingDevice::Limit)
|
||||
VARIANT_ENUM_CAST(RenderingDevice::MemoryType)
|
||||
|
||||
typedef RenderingDevice RD;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue