mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 18:11:13 +00:00
Add RenderingServer.get_video_adapter_type() method
This can be used to distinguish between integrated, dedicated, virtual and software-emulated GPUs. This in turn can be used to automatically adjust graphics settings, or warn users about features that may run slowly on their hardware.
This commit is contained in:
parent
85380c5207
commit
b3174e7af9
18 changed files with 80 additions and 0 deletions
|
|
@ -255,6 +255,10 @@ String RenderingServerDefault::get_video_adapter_vendor() const {
|
|||
return RSG::storage->get_video_adapter_vendor();
|
||||
}
|
||||
|
||||
RenderingDevice::DeviceType RenderingServerDefault::get_video_adapter_type() const {
|
||||
return RSG::storage->get_video_adapter_type();
|
||||
}
|
||||
|
||||
void RenderingServerDefault::set_frame_profiling_enabled(bool p_enable) {
|
||||
RSG::storage->capturing_timestamps = p_enable;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue