jak-project/common/util/os.h
water111 5135ea9659
[graphics] reduce the size of fr3 files (#1175)
* first pass

* first pass at shrinking fr3s

* only need to load vertices once

* avx2 detect and switch

* fix build

* another ifx'

* one more

* fix the sky and stupid math bug in size check
2022-02-16 22:13:18 -05:00

20 lines
333 B
C++

#pragma once
#include <cstddef>
#include <string>
// Note: these are not implemented on windows and will return zero.
size_t get_peak_rss();
void setup_cpu_info();
struct CpuInfo {
bool initialized = false;
bool has_avx = false;
bool has_avx2 = false;
std::string brand;
std::string model;
};
CpuInfo& get_cpu_info();