Add an OS.get_processor_name() method

This method can be used to get the CPU model name.
It can be used in conjunction with
`RenderingServer.get_video_adapter_name()` and
`RenderingServer.get_video_adapter_vendor()` for annotating benchmarks
and automatic graphics quality configuration.
This commit is contained in:
Hugo Locurcio 2020-12-27 01:50:21 +01:00
parent 171021145d
commit ee7cd9a3a1
No known key found for this signature in database
GPG key ID: 39E8F8BE30B0A49C
13 changed files with 78 additions and 1 deletions

View file

@ -358,6 +358,10 @@ int OS::get_processor_count() const {
return 1;
}
String OS::get_processor_name() const {
return "";
}
bool OS::can_use_threads() const {
#ifdef NO_THREADS
return false;